home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tex / macros / source / packages / tools / tabularx.dtx < prev    next >
LaTeX Document  |  1995-03-15  |  28.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX 2e document text default
99% file LaTeX document text default
98% file LaTeX document, ASCII text default
100% TrID LaTeX 2e document (with rem) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 5c 69 66 66 61 6c | 73 65 0a 25 25 20 46 69 |% \iffal|se.%% Fi|
|00000010| 6c 65 3a 20 74 61 62 75 | 6c 61 72 78 2e 64 74 78 |le: tabu|larx.dtx|
|00000020| 20 43 6f 70 79 72 69 67 | 68 74 20 28 43 29 20 31 | Copyrig|ht (C) 1|
|00000030| 39 39 31 2d 31 39 39 34 | 20 44 61 76 69 64 20 43 |991-1994| David C|
|00000040| 61 72 6c 69 73 6c 65 0a | 25 0a 25 3c 70 61 63 6b |arlisle.|%.%<pack|
|00000050| 61 67 65 3e 5c 4e 65 65 | 64 73 54 65 58 46 6f 72 |age>\Nee|dsTeXFor|
|00000060| 6d 61 74 7b 4c 61 54 65 | 58 32 65 7d 0a 25 3c 70 |mat{LaTe|X2e}.%<p|
|00000070| 61 63 6b 61 67 65 3e 5c | 50 72 6f 76 69 64 65 73 |ackage>\|Provides|
|00000080| 50 61 63 6b 61 67 65 7b | 74 61 62 75 6c 61 72 78 |Package{|tabularx|
|00000090| 7d 0a 25 3c 70 61 63 6b | 61 67 65 3e 20 20 20 20 |}.%<pack|age> |
|000000a0| 20 20 20 20 20 5b 31 39 | 39 34 2f 30 35 2f 32 32 | [19|94/05/22|
|000000b0| 20 76 32 2e 30 31 20 60 | 74 61 62 75 6c 61 72 78 | v2.01 `|tabularx|
|000000c0| 27 20 70 61 63 6b 61 67 | 65 20 28 44 50 43 29 5d |' packag|e (DPC)]|
|000000d0| 0a 25 0a 25 3c 2a 64 72 | 69 76 65 72 3e 0a 5c 64 |.%.%<*dr|iver>.\d|
|000000e0| 6f 63 75 6d 65 6e 74 63 | 6c 61 73 73 7b 6c 74 78 |ocumentc|lass{ltx|
|000000f0| 64 6f 63 7d 0a 5c 75 73 | 65 70 61 63 6b 61 67 65 |doc}.\us|epackage|
|00000100| 5b 69 6e 66 6f 73 68 6f | 77 5d 7b 74 61 62 75 6c |[infosho|w]{tabul|
|00000110| 61 72 78 7d 0a 5c 47 65 | 74 46 69 6c 65 49 6e 66 |arx}.\Ge|tFileInf|
|00000120| 6f 7b 74 61 62 75 6c 61 | 72 78 2e 73 74 79 7d 0a |o{tabula|rx.sty}.|
|00000130| 5c 62 65 67 69 6e 7b 64 | 6f 63 75 6d 65 6e 74 7d |\begin{d|ocument}|
|00000140| 0a 5c 74 69 74 6c 65 7b | 54 68 65 20 5c 74 65 78 |.\title{|The \tex|
|00000150| 74 73 66 7b 74 61 62 75 | 6c 61 72 78 7d 20 70 61 |tsf{tabu|larx} pa|
|00000160| 63 6b 61 67 65 5c 74 68 | 61 6e 6b 73 7b 54 68 69 |ckage\th|anks{Thi|
|00000170| 73 20 66 69 6c 65 0a 20 | 20 20 20 20 20 20 20 68 |s file. | h|
|00000180| 61 73 20 76 65 72 73 69 | 6f 6e 20 6e 75 6d 62 65 |as versi|on numbe|
|00000190| 72 20 5c 66 69 6c 65 76 | 65 72 73 69 6f 6e 2c 20 |r \filev|ersion, |
|000001a0| 6c 61 73 74 0a 20 20 20 | 20 20 20 20 20 72 65 76 |last. | rev|
|000001b0| 69 73 65 64 20 5c 66 69 | 6c 65 64 61 74 65 2e 7d |ised \fi|ledate.}|
|000001c0| 7d 0a 5c 61 75 74 68 6f | 72 7b 44 61 76 69 64 20 |}.\autho|r{David |
|000001d0| 43 61 72 6c 69 73 6c 65 | 5c 5c 63 61 72 6c 69 73 |Carlisle|\\carlis|
|000001e0| 6c 65 40 63 73 2e 6d 61 | 6e 2e 61 63 2e 75 6b 7d |le@cs.ma|n.ac.uk}|
|000001f0| 0a 5c 64 61 74 65 7b 5c | 66 69 6c 65 64 61 74 65 |.\date{\|filedate|
|00000200| 7d 0a 20 5c 6d 61 6b 65 | 74 69 74 6c 65 0a 20 5c |}. \make|title. \|
|00000210| 44 65 6c 65 74 65 53 68 | 6f 72 74 56 65 72 62 7b |DeleteSh|ortVerb{|
|00000220| 5c 7c 7d 0a 20 5c 44 6f | 63 49 6e 70 75 74 7b 74 |\|}. \Do|cInput{t|
|00000230| 61 62 75 6c 61 72 78 2e | 64 74 78 7d 0a 5c 65 6e |abularx.|dtx}.\en|
|00000240| 64 7b 64 6f 63 75 6d 65 | 6e 74 7d 0a 25 3c 2f 64 |d{docume|nt}.%</d|
|00000250| 72 69 76 65 72 3e 0a 25 | 20 5c 66 69 0a 25 0a 25 |river>.%| \fi.%.%|
|00000260| 20 5c 63 68 61 6e 67 65 | 73 7b 76 31 2e 30 30 7d | \change|s{v1.00}|
|00000270| 7b 31 39 39 32 2f 30 31 | 2f 33 30 7d 7b 49 6e 69 |{1992/01|/30}{Ini|
|00000280| 74 69 61 6c 20 76 65 72 | 73 69 6f 6e 2e 7d 0a 25 |tial ver|sion.}.%|
|00000290| 20 5c 63 68 61 6e 67 65 | 73 7b 76 31 2e 30 31 7d | \change|s{v1.01}|
|000002a0| 7b 31 39 39 32 2f 30 37 | 2f 30 37 7d 7b 52 65 2d |{1992/07|/07}{Re-|
|000002b0| 69 73 73 75 65 20 66 6f | 72 20 74 68 65 20 6e 65 |issue fo|r the ne|
|000002c0| 77 20 64 6f 63 20 61 6e | 64 20 64 6f 63 73 74 72 |w doc an|d docstr|
|000002d0| 69 70 2e 7d 0a 25 20 5c | 63 68 61 6e 67 65 73 7b |ip.}.% \|changes{|
|000002e0| 76 31 2e 30 32 7d 7b 31 | 39 39 32 2f 30 37 2f 31 |v1.02}{1|992/07/1|
|000002f0| 37 7d 7b 41 64 64 65 64 | 20 73 6f 6d 65 20 73 75 |7}{Added| some su|
|00000300| 70 70 6f 72 74 20 66 6f | 72 20 5c 63 6d 64 5c 76 |pport fo|r \cmd\v|
|00000310| 65 72 62 7d 0a 25 20 5c | 63 68 61 6e 67 65 73 7b |erb}.% \|changes{|
|00000320| 76 31 2e 30 33 7d 7b 31 | 39 39 32 2f 30 38 2f 31 |v1.03}{1|992/08/1|
|00000330| 37 7d 0a 25 20 20 20 20 | 7b 41 64 64 65 64 20 5c |7}.% |{Added \|
|00000340| 63 6d 64 5c 69 66 6e 75 | 6d 30 3d 27 7b 5c 63 6d |cmd\ifnu|m0='{\cm|
|00000350| 64 5c 66 69 7d 20 62 72 | 61 63 6b 65 74 73 20 61 |d\fi} br|ackets a|
|00000360| 66 74 65 72 20 72 65 70 | 6f 72 74 20 62 79 0a 25 |fter rep|ort by.%|
|00000370| 20 20 20 20 20 41 6e 64 | 72 65 61 73 20 4d 61 61 | And|reas Maa|
|00000380| 73 73 65 6e 7d 0a 25 20 | 5c 63 68 61 6e 67 65 73 |ssen}.% |\changes|
|00000390| 7b 76 31 2e 30 34 7d 7b | 31 39 39 32 2f 30 39 2f |{v1.04}{|1992/09/|
|000003a0| 30 32 7d 0a 25 20 20 20 | 20 7b 66 69 78 65 64 20 |02}.% | {fixed |
|000003b0| 5c 63 6d 64 5c 76 65 72 | 62 2c 20 61 6e 64 20 73 |\cmd\ver|b, and s|
|000003c0| 75 70 70 6f 72 74 20 66 | 6f 6f 74 6e 6f 74 65 73 |upport f|ootnotes|
|000003d0| 2e 7d 0a 25 20 5c 63 68 | 61 6e 67 65 73 7b 76 31 |.}.% \ch|anges{v1|
|000003e0| 2e 30 35 7d 7b 31 39 39 | 32 2f 31 31 2f 30 36 7d |.05}{199|2/11/06}|
|000003f0| 0a 25 20 20 20 20 7b 70 | 72 65 73 65 72 76 65 20 |.% {p|reserve |
|00000400| 61 6c 6c 20 4c 61 54 65 | 58 20 63 6f 75 6e 74 65 |all LaTe|X counte|
|00000410| 72 73 7d 0a 25 20 5c 63 | 68 61 6e 67 65 73 7b 76 |rs}.% \c|hanges{v|
|00000420| 31 2e 30 36 7d 7b 31 39 | 39 33 2f 30 38 2f 30 32 |1.06}{19|93/08/02|
|00000430| 7d 0a 25 20 20 20 20 7b | 28 4d 61 72 74 69 6e 20 |}.% {|(Martin |
|00000440| 53 63 68 72 6f 65 64 65 | 72 29 20 53 75 70 70 6f |Schroede|r) Suppo|
|00000450| 72 74 20 74 68 65 20 6f | 70 74 69 6f 6e 61 6c 20 |rt the o|ptional |
|00000460| 5b 74 5d 20 6f 72 20 5b | 62 5d 20 61 72 67 75 6d |[t] or [|b] argum|
|00000470| 65 6e 74 2e 0a 25 20 20 | 20 20 20 41 6c 73 6f 20 |ent..% | Also |
|00000480| 6e 6f 77 20 77 6f 72 6b | 73 20 77 69 74 68 20 64 |now work|s with d|
|00000490| 65 6c 61 72 72 61 79 2e | 73 74 79 2e 7d 0a 25 20 |elarray.|sty.}.% |
|000004a0| 5c 63 68 61 6e 67 65 73 | 7b 76 31 2e 30 37 7d 7b |\changes|{v1.07}{|
|000004b0| 31 39 39 33 2f 30 38 2f | 32 37 7d 0a 25 20 20 20 |1993/08/|27}.% |
|000004c0| 20 7b 4d 6f 64 69 66 69 | 63 61 74 69 6f 6e 73 20 | {Modifi|cations |
|000004d0| 74 6f 20 6d 61 6b 65 20 | 74 68 69 73 20 73 74 79 |to make |this sty|
|000004e0| 6c 65 20 63 6f 6d 70 61 | 74 69 62 6c 65 20 77 69 |le compa|tible wi|
|000004f0| 74 68 20 63 61 6c 63 2e | 73 74 79 2e 7d 0a 25 20 |th calc.|sty.}.% |
|00000500| 5c 63 68 61 6e 67 65 73 | 7b 76 32 2e 30 30 7d 7b |\changes|{v2.00}{|
|00000510| 31 39 39 34 2f 30 33 2f | 31 34 7d 0a 25 20 20 20 |1994/03/|14}.% |
|00000520| 20 7b 55 70 64 61 74 65 | 20 74 6f 20 4c 61 54 65 | {Update| to LaTe|
|00000530| 58 32 65 7d 0a 25 20 5c | 63 68 61 6e 67 65 73 7b |X2e}.% \|changes{|
|00000540| 76 32 2e 30 31 7d 7b 31 | 39 39 34 2f 30 35 2f 32 |v2.01}{1|994/05/2|
|00000550| 32 7d 0a 25 20 20 20 20 | 7b 4e 65 77 20 54 72 61 |2}.% |{New Tra|
|00000560| 63 69 6e 67 20 66 6f 72 | 6d 61 74 2e 7d 0a 25 0a |cing for|mat.}.%.|
|00000570| 25 0a 25 20 25 25 25 25 | 25 25 25 25 25 25 25 25 |%.% %%%%|%%%%%%%%|
|00000580| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000590| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000005a0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000005b0| 25 25 25 25 25 25 25 25 | 25 25 0a 25 0a 25 0a 25 |%%%%%%%%|%%.%.%.%|
|000005c0| 20 5c 43 68 65 63 6b 53 | 75 6d 7b 34 33 37 7d 0a | \CheckS|um{437}.|
|000005d0| 25 0a 25 20 5c 4d 61 6b | 65 53 68 6f 72 74 56 65 |%.% \Mak|eShortVe|
|000005e0| 72 62 7b 5c 22 7d 0a 25 | 0a 25 20 5c 62 65 67 69 |rb{\"}.%|.% \begi|
|000005f0| 6e 7b 61 62 73 74 72 61 | 63 74 7d 0a 25 20 41 20 |n{abstra|ct}.% A |
|00000600| 6e 65 77 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 2c |new envi|ronment,|
|00000610| 20 7b 5c 74 74 66 61 6d | 69 6c 79 20 74 61 62 75 | {\ttfam|ily tabu|
|00000620| 6c 61 72 78 7d 2c 20 69 | 73 20 64 65 66 69 6e 65 |larx}, i|s define|
|00000630| 64 2c 20 77 68 69 63 68 | 20 74 61 6b 65 73 20 74 |d, which| takes t|
|00000640| 68 65 0a 25 20 73 61 6d | 65 20 61 72 67 75 6d 65 |he.% sam|e argume|
|00000650| 6e 74 73 20 61 73 20 7b | 5c 74 74 66 61 6d 69 6c |nts as {|\ttfamil|
|00000660| 79 20 74 61 62 75 6c 61 | 72 2a 7d 2c 20 62 75 74 |y tabula|r*}, but|
|00000670| 20 6d 6f 64 69 66 69 65 | 73 20 74 68 65 20 77 69 | modifie|s the wi|
|00000680| 64 74 68 73 20 6f 66 0a | 25 20 63 65 72 74 61 69 |dths of.|% certai|
|00000690| 6e 20 63 6f 6c 75 6d 6e | 73 2c 20 72 61 74 68 65 |n column|s, rathe|
|000006a0| 72 20 74 68 61 6e 20 74 | 68 65 20 69 6e 74 65 72 |r than t|he inter|
|000006b0| 20 63 6f 6c 75 6d 6e 20 | 73 70 61 63 65 2c 20 74 | column |space, t|
|000006c0| 6f 20 73 65 74 20 61 20 | 74 61 62 6c 65 0a 25 20 |o set a |table.% |
|000006d0| 77 69 74 68 20 74 68 65 | 20 72 65 71 75 65 73 74 |with the| request|
|000006e0| 65 64 20 74 6f 74 61 6c | 20 77 69 64 74 68 2e 20 |ed total| width. |
|000006f0| 54 68 65 20 63 6f 6c 75 | 6d 6e 73 20 74 68 61 74 |The colu|mns that|
|00000700| 20 6d 61 79 20 73 74 72 | 65 74 63 68 20 61 72 65 | may str|etch are|
|00000710| 0a 25 20 6d 61 72 6b 65 | 64 20 77 69 74 68 20 74 |.% marke|d with t|
|00000720| 68 65 20 6e 65 77 20 74 | 6f 6b 65 6e 20 7b 5c 74 |he new t|oken {\t|
|00000730| 74 66 61 6d 69 6c 79 20 | 58 7d 20 69 6e 20 74 68 |tfamily |X} in th|
|00000740| 65 20 70 72 65 61 6d 62 | 6c 65 20 61 72 67 75 6d |e preamb|le argum|
|00000750| 65 6e 74 2e 0a 25 0a 25 | 20 54 68 69 73 20 70 61 |ent..%.%| This pa|
|00000760| 63 6b 61 67 65 20 72 65 | 71 75 69 72 65 73 20 74 |ckage re|quires t|
|00000770| 68 65 20 7b 5c 74 74 66 | 61 6d 69 6c 79 20 61 72 |he {\ttf|amily ar|
|00000780| 72 61 79 7d 20 70 61 63 | 6b 61 67 65 2e 0a 25 20 |ray} pac|kage..% |
|00000790| 5c 65 6e 64 7b 61 62 73 | 74 72 61 63 74 7d 0a 25 |\end{abs|tract}.%|
|000007a0| 0a 25 20 5c 73 65 63 74 | 69 6f 6e 7b 49 6e 74 72 |.% \sect|ion{Intr|
|000007b0| 6f 64 75 63 74 69 6f 6e | 7d 0a 25 20 54 68 69 73 |oduction|}.% This|
|000007c0| 20 70 61 63 6b 61 67 65 | 20 69 6d 70 6c 65 6d 65 | package| impleme|
|000007d0| 6e 74 73 20 61 20 76 65 | 72 73 69 6f 6e 20 6f 66 |nts a ve|rsion of|
|000007e0| 20 74 68 65 20 7b 5c 74 | 74 66 61 6d 69 6c 79 20 | the {\t|tfamily |
|000007f0| 74 61 62 75 6c 61 72 7d | 0a 25 20 65 6e 76 69 72 |tabular}|.% envir|
|00000800| 6f 6e 6d 65 6e 74 20 69 | 6e 20 77 68 69 63 68 20 |onment i|n which |
|00000810| 74 68 65 20 77 69 64 74 | 68 73 20 6f 66 20 63 65 |the widt|hs of ce|
|00000820| 72 74 61 69 6e 20 63 6f | 6c 75 6d 6e 73 20 61 72 |rtain co|lumns ar|
|00000830| 65 20 63 61 6c 63 75 6c | 61 74 65 64 20 73 6f 0a |e calcul|ated so.|
|00000840| 25 20 74 68 61 74 20 74 | 68 65 20 74 61 62 6c 65 |% that t|he table|
|00000850| 20 69 73 20 69 73 20 61 | 20 73 70 65 63 69 66 69 | is is a| specifi|
|00000860| 65 64 20 77 69 64 74 68 | 2e 20 52 65 71 75 65 73 |ed width|. Reques|
|00000870| 74 73 20 66 6f 72 20 73 | 75 63 68 20 61 6e 0a 25 |ts for s|uch an.%|
|00000880| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 73 65 65 | environ|ment see|
|00000890| 6d 20 74 6f 20 6f 63 63 | 75 72 20 71 75 69 74 65 |m to occ|ur quite|
|000008a0| 20 72 65 67 75 6c 61 72 | 6c 79 20 69 6e 20 7b 5c | regular|ly in {\|
|000008b0| 74 74 66 61 6d 69 6c 79 | 0a 25 20 63 6f 6d 70 2e |ttfamily|.% comp.|
|000008c0| 74 65 78 74 2e 74 65 78 | 7d 2e 0a 25 0a 25 20 5c |text.tex|}..%.% \|
|000008d0| 44 65 73 63 72 69 62 65 | 45 6e 76 7b 74 61 62 75 |Describe|Env{tabu|
|000008e0| 6c 61 72 78 7d 0a 25 20 | 22 5c 62 65 67 69 6e 7b |larx}.% |"\begin{|
|000008f0| 74 61 62 75 6c 61 72 78 | 7d 7b 22 5c 6d 65 74 61 |tabularx|}{"\meta|
|00000900| 7b 77 69 64 74 68 7d 22 | 7d 7b 22 5c 6d 65 74 61 |{width}"|}{"\meta|
|00000910| 7b 70 72 65 61 6d 62 6c | 65 7d 22 7d 22 5c 5c 0a |{preambl|e}"}"\\.|
|00000920| 25 20 54 68 65 20 61 72 | 67 75 6d 65 6e 74 73 20 |% The ar|guments |
|00000930| 6f 66 20 22 74 61 62 75 | 6c 61 72 78 22 20 61 72 |of "tabu|larx" ar|
|00000940| 65 20 65 73 73 65 6e 74 | 69 61 6c 6c 79 20 74 68 |e essent|ially th|
|00000950| 65 20 73 61 6d 65 20 61 | 73 20 74 68 6f 73 65 20 |e same a|s those |
|00000960| 6f 66 0a 25 20 74 68 65 | 20 73 74 61 6e 64 61 72 |of.% the| standar|
|00000970| 64 20 22 74 61 62 75 6c | 61 72 2a 22 20 65 6e 76 |d "tabul|ar*" env|
|00000980| 69 72 6f 6e 6d 65 6e 74 | 2e 20 48 6f 77 65 76 65 |ironment|. Howeve|
|00000990| 72 20 72 61 74 68 65 72 | 20 74 68 61 6e 20 61 64 |r rather| than ad|
|000009a0| 64 69 6e 67 20 73 70 61 | 63 65 0a 25 20 62 65 74 |ding spa|ce.% bet|
|000009b0| 77 65 65 6e 20 74 68 65 | 20 63 6f 6c 75 6d 6e 73 |ween the| columns|
|000009c0| 20 74 6f 20 61 63 68 69 | 65 76 65 20 74 68 65 20 | to achi|eve the |
|000009d0| 64 65 73 69 72 65 64 20 | 77 69 64 74 68 2c 20 69 |desired |width, i|
|000009e0| 74 20 61 64 6a 75 73 74 | 73 20 74 68 65 0a 25 20 |t adjust|s the.% |
|000009f0| 77 69 64 74 68 73 20 6f | 66 20 73 6f 6d 65 20 6f |widths o|f some o|
|00000a00| 66 20 74 68 65 20 63 6f | 6c 75 6d 6e 73 2e 20 54 |f the co|lumns. T|
|00000a10| 68 65 20 63 6f 6c 75 6d | 6e 73 20 77 68 69 63 68 |he colum|ns which|
|00000a20| 20 61 72 65 20 61 66 66 | 65 63 74 65 64 20 62 79 | are aff|ected by|
|00000a30| 20 74 68 65 0a 25 20 7b | 5c 74 74 66 61 6d 69 6c | the.% {|\ttfamil|
|00000a40| 79 20 74 61 62 75 6c 61 | 72 78 7d 20 65 6e 76 69 |y tabula|rx} envi|
|00000a50| 72 6f 6e 6d 65 6e 74 20 | 73 68 6f 75 6c 64 20 62 |ronment |should b|
|00000a60| 65 20 64 65 6e 6f 74 65 | 64 20 77 69 74 68 20 74 |e denote|d with t|
|00000a70| 68 65 20 6c 65 74 74 65 | 72 0a 25 20 7b 5c 74 74 |he lette|r.% {\tt|
|00000a80| 66 61 6d 69 6c 79 20 58 | 7d 20 69 6e 20 74 68 65 |family X|} in the|
|00000a90| 20 70 72 65 61 6d 62 6c | 65 20 61 72 67 75 6d 65 | preambl|e argume|
|00000aa0| 6e 74 2e 20 54 68 65 20 | 7b 5c 74 74 66 61 6d 69 |nt. The |{\ttfami|
|00000ab0| 6c 79 20 58 7d 20 63 6f | 6c 75 6d 6e 0a 25 20 73 |ly X} co|lumn.% s|
|00000ac0| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 20 77 69 6c |pecifica|tion wil|
|00000ad0| 6c 20 62 65 20 63 6f 6e | 76 65 72 74 65 64 20 74 |l be con|verted t|
|00000ae0| 6f 20 20 22 70 7b 22 5c | 6d 65 74 61 7b 73 6f 6d |o "p{"\|meta{som|
|00000af0| 65 20 76 61 6c 75 65 7d | 22 7d 22 20 6f 6e 63 65 |e value}|"}" once|
|00000b00| 20 74 68 65 0a 25 20 63 | 6f 72 72 65 63 74 20 63 | the.% c|orrect c|
|00000b10| 6f 6c 75 6d 6e 20 77 69 | 64 74 68 20 68 61 73 20 |olumn wi|dth has |
|00000b20| 62 65 65 6e 20 63 61 6c | 63 75 6c 61 74 65 64 2e |been cal|culated.|
|00000b30| 0a 25 0a 25 20 5c 73 65 | 63 74 69 6f 6e 7b 45 78 |.%.% \se|ction{Ex|
|00000b40| 61 6d 70 6c 65 73 7d 0a | 25 0a 25 20 54 68 65 20 |amples}.|%.% The |
|00000b50| 66 6f 6c 6c 6f 77 69 6e | 67 20 74 61 62 6c 65 20 |followin|g table |
|00000b60| 69 73 20 73 65 74 20 77 | 69 74 68 0a 25 20 22 5c |is set w|ith.% "\|
|00000b70| 62 65 67 69 6e 7b 74 61 | 62 75 6c 61 72 78 7d 7b |begin{ta|bularx}{|
|00000b80| 32 35 30 70 74 7d 7b 7c | 63 7c 58 7c 63 7c 58 7c |250pt}{||c|X|c|X||
|00000b90| 7d 20 2e 2e 2e 22 2e 0a | 25 0a 25 20 5c 62 65 67 |} ..."..|%.% \beg|
|00000ba0| 69 6e 7b 63 65 6e 74 65 | 72 7d 0a 25 20 5c 62 65 |in{cente|r}.% \be|
|00000bb0| 67 69 6e 7b 74 61 62 75 | 6c 61 72 78 7d 7b 32 35 |gin{tabu|larx}{25|
|00000bc0| 30 70 74 7d 7b 7c 63 7c | 58 7c 63 7c 58 7c 7d 0a |0pt}{|c||X|c|X|}.|
|00000bd0| 25 20 5c 68 6c 69 6e 65 | 0a 25 20 5c 6d 75 6c 74 |% \hline|.% \mult|
|00000be0| 69 63 6f 6c 75 6d 6e 7b | 32 7d 7b 7c 63 7c 7d 7b |icolumn{|2}{|c|}{|
|00000bf0| 4d 75 6c 74 69 63 6f 6c | 75 6d 6e 20 65 6e 74 72 |Multicol|umn entr|
|00000c00| 79 21 7d 26 0a 25 20 54 | 48 52 45 45 26 0a 25 20 |y!}&.% T|HREE&.% |
|00000c10| 46 4f 55 52 5c 5c 0a 25 | 20 5c 68 6c 69 6e 65 0a |FOUR\\.%| \hline.|
|00000c20| 25 20 6f 6e 65 26 0a 25 | 20 5c 72 61 67 67 65 64 |% one&.%| \ragged|
|00000c30| 72 69 67 68 74 5c 61 72 | 72 61 79 62 61 63 6b 73 |right\ar|raybacks|
|00000c40| 6c 61 73 68 20 54 68 65 | 20 77 69 64 74 68 20 6f |lash The| width o|
|00000c50| 66 20 74 68 69 73 20 63 | 6f 6c 75 6d 6e 20 64 65 |f this c|olumn de|
|00000c60| 70 65 6e 64 73 20 6f 6e | 20 74 68 65 0a 25 20 77 |pends on| the.% w|
|00000c70| 69 64 74 68 20 6f 66 20 | 74 68 65 20 74 61 62 6c |idth of |the tabl|
|00000c80| 65 2e 5c 66 6f 6f 74 6e | 6f 74 65 0a 25 20 7b 59 |e.\footn|ote.% {Y|
|00000c90| 6f 75 20 63 61 6e 20 6e | 6f 77 20 75 73 65 20 7b |ou can n|ow use {|
|00000ca0| 5c 74 74 66 61 6d 69 6c | 79 20 5c 62 73 6c 61 73 |\ttfamil|y \bslas|
|00000cb0| 68 20 66 6f 6f 74 6e 6f | 74 65 7d 20 69 6e 73 69 |h footno|te} insi|
|00000cc0| 64 65 20 7b 5c 74 74 66 | 61 6d 69 6c 79 0a 25 20 |de {\ttf|amily.% |
|00000cd0| 74 61 62 75 6c 61 72 78 | 7d 21 7d 26 0a 25 20 74 |tabularx|}!}&.% t|
|00000ce0| 68 72 65 65 26 0a 25 20 | 5c 72 61 67 67 65 64 72 |hree&.% |\raggedr|
|00000cf0| 69 67 68 74 5c 61 72 72 | 61 79 62 61 63 6b 73 6c |ight\arr|aybacksl|
|00000d00| 61 73 68 20 43 6f 6c 75 | 6d 6e 20 66 6f 75 72 20 |ash Colu|mn four |
|00000d10| 77 69 6c 6c 20 61 63 74 | 20 69 6e 20 74 68 65 20 |will act| in the |
|00000d20| 73 61 6d 65 20 77 61 79 | 20 61 73 0a 25 20 63 6f |same way| as.% co|
|00000d30| 6c 75 6d 6e 20 74 77 6f | 2c 20 77 69 74 68 20 74 |lumn two|, with t|
|00000d40| 68 65 20 73 61 6d 65 20 | 77 69 64 74 68 2e 5c 5c |he same |width.\\|
|00000d50| 0a 25 20 5c 68 6c 69 6e | 65 0a 25 20 5c 65 6e 64 |.% \hlin|e.% \end|
|00000d60| 7b 74 61 62 75 6c 61 72 | 78 7d 0a 25 20 5c 65 6e |{tabular|x}.% \en|
|00000d70| 64 7b 63 65 6e 74 65 72 | 7d 0a 25 20 49 66 20 77 |d{center|}.% If w|
|00000d80| 65 20 63 68 61 6e 67 65 | 20 74 68 65 20 66 69 72 |e change| the fir|
|00000d90| 73 74 20 6c 69 6e 65 20 | 74 6f 20 22 5c 62 65 67 |st line |to "\beg|
|00000da0| 69 6e 7b 74 61 62 75 6c | 61 72 78 7d 7b 33 30 30 |in{tabul|arx}{300|
|00000db0| 70 74 7d 7b 7c 63 7c 58 | 7c 63 7c 58 7c 7d 22 20 |pt}{|c|X||c|X|}" |
|00000dc0| 77 65 0a 25 20 67 65 74 | 3a 0a 25 20 5c 62 65 67 |we.% get|:.% \beg|
|00000dd0| 69 6e 7b 63 65 6e 74 65 | 72 7d 0a 25 20 5c 62 65 |in{cente|r}.% \be|
|00000de0| 67 69 6e 7b 74 61 62 75 | 6c 61 72 78 7d 7b 33 30 |gin{tabu|larx}{30|
|00000df0| 30 70 74 7d 7b 7c 63 7c | 58 7c 63 7c 58 7c 7d 0a |0pt}{|c||X|c|X|}.|
|00000e00| 25 20 5c 68 6c 69 6e 65 | 0a 25 20 5c 6d 75 6c 74 |% \hline|.% \mult|
|00000e10| 69 63 6f 6c 75 6d 6e 7b | 32 7d 7b 7c 63 7c 7d 7b |icolumn{|2}{|c|}{|
|00000e20| 4d 75 6c 74 69 63 6f 6c | 75 6d 6e 20 65 6e 74 72 |Multicol|umn entr|
|00000e30| 79 21 7d 26 0a 25 20 54 | 48 52 45 45 26 0a 25 20 |y!}&.% T|HREE&.% |
|00000e40| 46 4f 55 52 5c 5c 0a 25 | 20 5c 68 6c 69 6e 65 0a |FOUR\\.%| \hline.|
|00000e50| 25 20 6f 6e 65 26 0a 25 | 20 5c 72 61 67 67 65 64 |% one&.%| \ragged|
|00000e60| 72 69 67 68 74 5c 61 72 | 72 61 79 62 61 63 6b 73 |right\ar|raybacks|
|00000e70| 6c 61 73 68 20 54 68 65 | 20 77 69 64 74 68 20 6f |lash The| width o|
|00000e80| 66 20 74 68 69 73 20 63 | 6f 6c 75 6d 6e 20 64 65 |f this c|olumn de|
|00000e90| 70 65 6e 64 73 20 6f 6e | 20 74 68 65 0a 25 20 77 |pends on| the.% w|
|00000ea0| 69 64 74 68 20 6f 66 20 | 74 68 65 20 74 61 62 6c |idth of |the tabl|
|00000eb0| 65 2e 26 0a 25 20 74 68 | 72 65 65 26 0a 25 20 5c |e.&.% th|ree&.% \|
|00000ec0| 72 61 67 67 65 64 72 69 | 67 68 74 5c 61 72 72 61 |raggedri|ght\arra|
|00000ed0| 79 62 61 63 6b 73 6c 61 | 73 68 20 43 6f 6c 75 6d |ybacksla|sh Colum|
|00000ee0| 6e 20 66 6f 75 72 20 77 | 69 6c 6c 20 61 63 74 20 |n four w|ill act |
|00000ef0| 69 6e 20 74 68 65 20 73 | 61 6d 65 20 77 61 79 20 |in the s|ame way |
|00000f00| 61 73 0a 25 20 63 6f 6c | 75 6d 6e 20 74 77 6f 2c |as.% col|umn two,|
|00000f10| 20 77 69 74 68 20 74 68 | 65 20 73 61 6d 65 20 77 | with th|e same w|
|00000f20| 69 64 74 68 2e 5c 5c 0a | 25 20 5c 68 6c 69 6e 65 |idth.\\.|% \hline|
|00000f30| 0a 25 20 5c 65 6e 64 7b | 74 61 62 75 6c 61 72 78 |.% \end{|tabularx|
|00000f40| 7d 0a 25 20 5c 65 6e 64 | 7b 63 65 6e 74 65 72 7d |}.% \end|{center}|
|00000f50| 0a 25 0a 25 20 5c 65 64 | 65 66 5c 6d 79 74 74 7b |.%.% \ed|ef\mytt{|
|00000f60| 5c 65 78 70 61 6e 64 61 | 66 74 65 72 5c 6e 6f 65 |\expanda|fter\noe|
|00000f70| 78 70 61 6e 64 5c 63 73 | 6e 61 6d 65 0a 25 20 20 |xpand\cs|name.% |
|00000f80| 20 20 20 20 20 20 20 20 | 20 20 20 6d 64 73 65 72 | | mdser|
|00000f90| 69 65 73 5c 65 6e 64 63 | 73 6e 61 6d 65 5c 6e 6f |ies\endc|sname\no|
|00000fa0| 65 78 70 61 6e 64 5c 74 | 74 66 61 6d 69 6c 79 7d |expand\t|tfamily}|
|00000fb0| 0a 25 20 5c 73 65 63 74 | 69 6f 6e 7b 44 69 66 66 |.% \sect|ion{Diff|
|00000fc0| 65 72 65 6e 63 65 73 20 | 62 65 74 77 65 65 6e 20 |erences |between |
|00000fd0| 7b 5c 6d 79 74 74 20 74 | 61 62 75 6c 61 72 78 7d |{\mytt t|abularx}|
|00000fe0| 20 61 6e 64 20 7b 5c 6d | 79 74 74 20 74 61 62 75 | and {\m|ytt tabu|
|00000ff0| 6c 61 72 2a 7d 7d 0a 25 | 20 54 68 65 73 65 20 74 |lar*}}.%| These t|
|00001000| 77 6f 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 73 20 |wo envir|onments |
|00001010| 74 61 6b 65 20 74 68 65 | 20 73 61 6d 65 20 61 72 |take the| same ar|
|00001020| 67 75 6d 65 6e 74 73 2c | 20 74 6f 20 70 72 6f 64 |guments,| to prod|
|00001030| 75 63 65 20 61 20 74 61 | 62 6c 65 20 6f 66 0a 25 |uce a ta|ble of.%|
|00001040| 20 61 20 73 70 65 63 69 | 66 69 65 64 20 77 69 64 | a speci|fied wid|
|00001050| 74 68 2e 20 54 68 65 20 | 6d 61 69 6e 20 64 69 66 |th. The |main dif|
|00001060| 66 65 72 65 6e 63 65 73 | 20 62 65 74 77 65 65 6e |ferences| between|
|00001070| 20 74 68 65 6d 20 61 72 | 65 3a 0a 25 20 5c 62 65 | them ar|e:.% \be|
|00001080| 67 69 6e 7b 69 74 65 6d | 69 7a 65 7d 0a 25 20 5c |gin{item|ize}.% \|
|00001090| 69 74 65 6d 20 7b 5c 74 | 74 66 61 6d 69 6c 79 20 |item {\t|tfamily |
|000010a0| 74 61 62 75 6c 61 72 78 | 7d 20 6d 6f 64 69 66 69 |tabularx|} modifi|
|000010b0| 65 73 20 74 68 65 20 77 | 69 64 74 68 73 20 6f 66 |es the w|idths of|
|000010c0| 20 74 68 65 20 5c 65 6d | 70 68 7b 63 6f 6c 75 6d | the \em|ph{colum|
|000010d0| 6e 73 7d 2c 0a 25 20 77 | 68 65 72 65 61 73 20 7b |ns},.% w|hereas {|
|000010e0| 5c 74 74 66 61 6d 69 6c | 79 20 74 61 62 75 6c 61 |\ttfamil|y tabula|
|000010f0| 72 2a 7d 20 6d 6f 64 69 | 66 69 65 73 20 74 68 65 |r*} modi|fies the|
|00001100| 20 77 69 64 74 68 73 20 | 6f 66 20 74 68 65 20 69 | widths |of the i|
|00001110| 6e 74 65 72 2d 63 6f 6c | 75 6d 6e 0a 25 20 5c 65 |nter-col|umn.% \e|
|00001120| 6d 70 68 7b 73 70 61 63 | 65 73 7d 2e 0a 25 20 5c |mph{spac|es}..% \|
|00001130| 69 74 65 6d 20 7b 5c 74 | 74 66 61 6d 69 6c 79 20 |item {\t|tfamily |
|00001140| 74 61 62 75 6c 61 72 7d | 20 61 6e 64 20 7b 5c 74 |tabular}| and {\t|
|00001150| 74 66 61 6d 69 6c 79 20 | 74 61 62 75 6c 61 72 2a |tfamily |tabular*|
|00001160| 7d 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 73 20 6d |} enviro|nments m|
|00001170| 61 79 20 62 65 0a 25 20 | 6e 65 73 74 65 64 20 77 |ay be.% |nested w|
|00001180| 69 74 68 20 6e 6f 20 72 | 65 73 74 72 69 63 74 69 |ith no r|estricti|
|00001190| 6f 6e 2c 20 68 6f 77 65 | 76 65 72 20 69 66 20 6f |on, howe|ver if o|
|000011a0| 6e 65 20 7b 5c 74 74 66 | 61 6d 69 6c 79 20 74 61 |ne {\ttf|amily ta|
|000011b0| 62 75 6c 61 72 78 7d 0a | 25 20 65 6e 76 69 72 6f |bularx}.|% enviro|
|000011c0| 6e 6d 65 6e 74 20 6f 63 | 63 75 72 73 20 69 6e 73 |nment oc|curs ins|
|000011d0| 69 64 65 20 61 6e 6f 74 | 68 65 72 2c 20 74 68 65 |ide anot|her, the|
|000011e0| 6e 20 74 68 65 20 69 6e | 6e 65 72 20 6f 6e 65 20 |n the in|ner one |
|000011f0| 7b 5c 65 6d 20 6d 75 73 | 74 5c 2f 7d 20 62 65 0a |{\em mus|t\/} be.|
|00001200| 25 20 65 6e 63 6c 6f 73 | 65 64 20 62 79 20 22 7b |% enclos|ed by "{|
|00001210| 20 7d 22 2e 0a 25 20 5c | 69 74 65 6d 20 54 68 65 | }"..% \|item The|
|00001220| 20 62 6f 64 79 20 6f 66 | 20 74 68 65 20 7b 5c 74 | body of| the {\t|
|00001230| 74 66 61 6d 69 6c 79 20 | 74 61 62 75 6c 61 72 78 |tfamily |tabularx|
|00001240| 7d 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 69 73 |} enviro|nment is|
|00001250| 20 69 6e 20 66 61 63 74 | 20 74 68 65 0a 25 20 61 | in fact| the.% a|
|00001260| 72 67 75 6d 65 6e 74 20 | 74 6f 20 61 20 63 6f 6d |rgument |to a com|
|00001270| 6d 61 6e 64 2c 20 61 6e | 64 20 73 6f 20 63 65 72 |mand, an|d so cer|
|00001280| 74 61 69 6e 20 63 6f 6e | 73 74 72 75 63 74 69 6f |tain con|structio|
|00001290| 6e 73 20 77 68 69 63 68 | 20 61 72 65 20 6e 6f 74 |ns which| are not|
|000012a0| 0a 25 20 61 6c 6c 6f 77 | 65 64 20 69 6e 20 63 6f |.% allow|ed in co|
|000012b0| 6d 6d 61 6e 64 20 61 72 | 67 75 6d 65 6e 74 73 20 |mmand ar|guments |
|000012c0| 28 6c 69 6b 65 20 22 5c | 76 65 72 62 22 29 20 6d |(like "\|verb") m|
|000012d0| 61 79 20 6e 6f 74 20 62 | 65 20 75 73 65 64 2e 5c |ay not b|e used.\|
|000012e0| 66 6f 6f 74 6e 6f 74 65 | 0a 25 20 7b 53 69 6e 63 |footnote|.% {Sinc|
|000012f0| 65 20 56 65 72 73 69 6f | 6e 20 31 2e 30 32 2c 20 |e Versio|n 1.02, |
|00001300| 7b 5c 74 74 66 61 6d 69 | 6c 79 5c 62 73 6c 61 73 |{\ttfami|ly\bslas|
|00001310| 68 20 76 65 72 62 20 61 | 6e 64 20 5c 74 74 66 61 |h verb a|nd \ttfa|
|00001320| 6d 69 6c 79 5c 62 73 6c | 61 73 68 0a 25 20 76 65 |mily\bsl|ash.% ve|
|00001330| 72 62 2a 7d 20 6d 61 79 | 20 62 65 20 75 73 65 64 |rb*} may| be used|
|00001340| 2c 20 62 75 74 20 74 68 | 65 79 20 6d 61 79 20 74 |, but th|ey may t|
|00001350| 72 65 61 74 20 73 70 61 | 63 65 73 20 69 6e 63 6f |reat spa|ces inco|
|00001360| 72 72 65 63 74 6c 79 2c | 20 61 6e 64 20 74 68 65 |rrectly,| and the|
|00001370| 0a 25 20 61 72 67 75 6d | 65 6e 74 20 63 61 6e 20 |.% argum|ent can |
|00001380| 6e 6f 74 20 63 6f 6e 74 | 61 69 6e 20 61 6e 20 75 |not cont|ain an u|
|00001390| 6e 6d 61 74 63 68 65 64 | 20 7b 5c 74 74 66 61 6d |nmatched| {\ttfam|
|000013a0| 69 6c 79 5c 63 68 61 72 | 60 5c 7b 7d 20 6f 72 0a |ily\char|`\{} or.|
|000013b0| 25 20 7b 5c 74 74 66 61 | 6d 69 6c 79 5c 63 68 61 |% {\ttfa|mily\cha|
|000013c0| 72 60 5c 7d 7d 2c 20 6f | 72 20 61 20 20 7b 5c 74 |r`\}}, o|r a {\t|
|000013d0| 74 66 61 6d 69 6c 79 5c | 63 68 61 72 60 5c 25 7d |tfamily\|char`\%}|
|000013e0| 20 63 68 61 72 61 63 74 | 65 72 2e 7d 0a 25 20 5c | charact|er.}.% \|
|000013f0| 69 74 65 6d 20 7b 5c 74 | 74 66 61 6d 69 6c 79 20 |item {\t|tfamily |
|00001400| 74 61 62 75 6c 61 72 2a | 7d 20 75 73 65 73 20 61 |tabular*|} uses a|
|00001410| 20 70 72 69 6d 69 74 69 | 76 65 20 63 61 70 61 62 | primiti|ve capab|
|00001420| 69 6c 69 74 79 20 6f 66 | 20 5c 54 65 58 5c 20 74 |ility of| \TeX\ t|
|00001430| 6f 0a 25 20 6d 6f 64 69 | 66 79 20 74 68 65 20 69 |o.% modi|fy the i|
|00001440| 6e 74 65 72 20 63 6f 6c | 75 6d 6e 20 73 70 61 63 |nter col|umn spac|
|00001450| 65 20 6f 66 20 61 6e 20 | 61 6c 69 67 6e 6d 65 6e |e of an |alignmen|
|00001460| 74 2e 20 7b 5c 74 74 66 | 61 6d 69 6c 79 20 74 61 |t. {\ttf|amily ta|
|00001470| 62 75 6c 61 72 78 7d 0a | 25 20 68 61 73 20 74 6f |bularx}.|% has to|
|00001480| 20 73 65 74 20 74 68 65 | 20 74 61 62 6c 65 20 73 | set the| table s|
|00001490| 65 76 65 72 61 6c 20 74 | 69 6d 65 73 20 61 73 20 |everal t|imes as |
|000014a0| 69 74 20 73 65 61 72 63 | 68 65 73 20 66 6f 72 20 |it searc|hes for |
|000014b0| 74 68 65 20 62 65 73 74 | 20 63 6f 6c 75 6d 6e 0a |the best| column.|
|000014c0| 25 20 77 69 64 74 68 73 | 2c 20 61 6e 64 20 69 73 |% widths|, and is|
|000014d0| 20 74 68 65 72 65 66 6f | 72 65 20 6d 75 63 68 20 | therefo|re much |
|000014e0| 73 6c 6f 77 65 72 2e 20 | 41 6c 73 6f 20 74 68 65 |slower. |Also the|
|000014f0| 20 66 61 63 74 20 74 68 | 61 74 20 74 68 65 20 62 | fact th|at the b|
|00001500| 6f 64 79 20 69 73 0a 25 | 20 65 78 70 61 6e 64 65 |ody is.%| expande|
|00001510| 64 20 73 65 76 65 72 61 | 6c 20 74 69 6d 65 73 20 |d severa|l times |
|00001520| 6d 61 79 20 62 72 65 61 | 6b 20 63 65 72 74 61 69 |may brea|k certai|
|00001530| 6e 20 5c 54 65 58 5c 20 | 63 6f 6e 73 74 72 75 63 |n \TeX\ |construc|
|00001540| 74 73 2e 0a 25 20 5c 65 | 6e 64 7b 69 74 65 6d 69 |ts..% \e|nd{itemi|
|00001550| 7a 65 7d 0a 25 0a 25 20 | 5c 73 65 63 74 69 6f 6e |ze}.%.% |\section|
|00001560| 7b 43 75 73 74 6f 6d 69 | 73 69 6e 67 20 74 68 65 |{Customi|sing the|
|00001570| 20 62 65 68 61 76 69 6f | 75 72 20 6f 66 20 7b 5c | behavio|ur of {\|
|00001580| 6d 79 74 74 20 74 61 62 | 75 6c 61 72 78 7d 7d 0a |mytt tab|ularx}}.|
|00001590| 25 0a 25 20 5c 73 75 62 | 73 65 63 74 69 6f 6e 7b |%.% \sub|section{|
|000015a0| 54 65 72 6d 69 6e 61 6c | 20 6f 75 74 70 75 74 7d |Terminal| output}|
|000015b0| 0a 25 20 5c 44 65 73 63 | 72 69 62 65 4d 61 63 72 |.% \Desc|ribeMacr|
|000015c0| 6f 7b 5c 74 72 61 63 69 | 6e 67 74 61 62 75 6c 61 |o{\traci|ngtabula|
|000015d0| 72 78 7d 0a 25 20 49 66 | 20 74 68 69 73 20 64 65 |rx}.% If| this de|
|000015e0| 63 6c 61 72 61 74 69 6f | 6e 20 69 73 20 6d 61 64 |claratio|n is mad|
|000015f0| 65 2c 20 73 61 79 20 69 | 6e 20 74 68 65 20 64 6f |e, say i|n the do|
|00001600| 63 75 6d 65 6e 74 20 70 | 72 65 61 6d 62 6c 65 2c |cument p|reamble,|
|00001610| 20 74 68 65 6e 20 61 6c | 6c 0a 25 20 66 6f 6c 6c | then al|l.% foll|
|00001620| 6f 77 69 6e 67 20 7b 5c | 74 74 66 61 6d 69 6c 79 |owing {\|ttfamily|
|00001630| 20 74 61 62 75 6c 61 72 | 78 7d 20 65 6e 76 69 72 | tabular|x} envir|
|00001640| 6f 6e 6d 65 6e 74 73 20 | 77 69 6c 6c 20 70 72 69 |onments |will pri|
|00001650| 6e 74 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 0a 25 |nt infor|mation.%|
|00001660| 20 61 62 6f 75 74 20 63 | 6f 6c 75 6d 6e 20 77 69 | about c|olumn wi|
|00001670| 64 74 68 73 20 61 73 20 | 74 68 65 79 20 72 65 70 |dths as |they rep|
|00001680| 65 61 74 65 64 6c 79 20 | 72 65 2d 73 65 74 20 74 |eatedly |re-set t|
|00001690| 68 65 20 74 61 62 6c 65 | 73 20 74 6f 20 66 69 6e |he table|s to fin|
|000016a0| 64 20 74 68 65 0a 25 20 | 63 6f 72 72 65 63 74 20 |d the.% |correct |
|000016b0| 77 69 64 74 68 73 2e 0a | 25 0a 25 20 41 73 20 61 |widths..|%.% As a|
|000016c0| 6e 20 61 6c 74 65 72 6e | 61 74 69 76 65 20 74 6f |n altern|ative to|
|000016d0| 20 75 73 69 6e 67 20 74 | 68 65 20 22 5c 74 72 61 | using t|he "\tra|
|000016e0| 63 69 6e 67 74 61 62 75 | 6c 61 72 78 22 20 64 65 |cingtabu|larx" de|
|000016f0| 63 6c 61 72 61 74 69 6f | 6e 2c 20 65 69 74 68 65 |claratio|n, eithe|
|00001700| 72 0a 25 20 6f 66 20 74 | 68 65 20 6f 70 74 69 6f |r.% of t|he optio|
|00001710| 6e 73 20 22 69 6e 66 6f | 73 68 6f 77 22 20 6f 72 |ns "info|show" or|
|00001720| 20 22 64 65 62 75 67 73 | 68 6f 77 22 20 6d 61 79 | "debugs|how" may|
|00001730| 20 62 65 20 67 69 76 65 | 6e 2c 20 65 69 74 68 65 | be give|n, eithe|
|00001740| 72 20 69 6e 20 74 68 65 | 0a 25 20 22 5c 75 73 65 |r in the|.% "\use|
|00001750| 70 61 63 6b 61 67 65 22 | 20 63 6f 6d 6d 61 6e 64 |package"| command|
|00001760| 20 74 68 61 74 20 6c 6f | 61 64 73 20 22 74 61 62 | that lo|ads "tab|
|00001770| 75 6c 61 72 78 22 2c 20 | 6f 72 20 61 73 20 61 20 |ularx", |or as a |
|00001780| 67 6c 6f 62 61 6c 20 6f | 70 74 69 6f 6e 0a 25 20 |global o|ption.% |
|00001790| 69 6e 20 74 68 65 20 22 | 5c 64 6f 63 75 6d 65 6e |in the "|\documen|
|000017a0| 74 63 6c 61 73 73 22 20 | 63 6f 6d 6d 61 6e 64 2e |tclass" |command.|
|000017b0| 0a 25 0a 25 20 5c 73 75 | 62 73 65 63 74 69 6f 6e |.%.% \su|bsection|
|000017c0| 7b 54 68 65 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |{The env|ironment|
|000017d0| 20 75 73 65 64 20 74 6f | 20 74 79 70 65 73 65 74 | used to| typeset|
|000017e0| 20 74 68 65 20 7b 5c 6d | 79 74 74 20 58 7d 20 63 | the {\m|ytt X} c|
|000017f0| 6f 6c 75 6d 6e 73 7d 0a | 25 20 42 79 20 64 65 66 |olumns}.|% By def|
|00001800| 61 75 6c 74 20 74 68 65 | 20 7b 5c 74 74 66 61 6d |ault the| {\ttfam|
|00001810| 69 6c 79 20 58 7d 20 73 | 70 65 63 69 66 69 63 61 |ily X} s|pecifica|
|00001820| 74 69 6f 6e 20 69 73 20 | 74 75 72 6e 65 64 20 69 |tion is |turned i|
|00001830| 6e 74 6f 0a 25 20 22 70 | 7b 22 5c 6d 65 74 61 7b |nto.% "p|{"\meta{|
|00001840| 73 6f 6d 65 20 76 61 6c | 75 65 7d 22 7d 22 2e 20 |some val|ue}"}". |
|00001850| 53 75 63 68 20 6e 61 72 | 72 6f 77 20 63 6f 6c 75 |Such nar|row colu|
|00001860| 6d 6e 73 20 6f 66 74 65 | 6e 0a 25 20 72 65 71 75 |mns ofte|n.% requ|
|00001870| 69 72 65 20 61 20 73 70 | 65 63 69 61 6c 20 66 6f |ire a sp|ecial fo|
|00001880| 72 6d 61 74 2c 20 74 68 | 69 73 20 6d 61 79 20 62 |rmat, th|is may b|
|00001890| 65 20 61 63 68 69 65 76 | 65 64 20 75 73 69 6e 67 |e achiev|ed using|
|000018a0| 20 74 68 65 20 22 3e 22 | 20 73 79 6e 74 61 78 0a | the ">"| syntax.|
|000018b0| 25 20 6f 66 20 7b 5c 74 | 74 66 61 6d 69 6c 79 20 |% of {\t|tfamily |
|000018c0| 61 72 72 61 79 2e 73 74 | 79 7d 2e 20 53 6f 20 66 |array.st|y}. So f|
|000018d0| 6f 72 20 65 78 61 6d 70 | 6c 65 20 79 6f 75 20 6d |or examp|le you m|
|000018e0| 61 79 20 67 69 76 65 20 | 61 20 73 70 65 63 69 66 |ay give |a specif|
|000018f0| 69 63 61 74 69 6f 6e 0a | 25 20 6f 66 20 22 3e 7b |ication.|% of ">{|
|00001900| 5c 73 6d 61 6c 6c 7d 58 | 22 2e 20 41 6e 6f 74 68 |\small}X|". Anoth|
|00001910| 65 72 20 66 6f 72 6d 61 | 74 20 77 68 69 63 68 20 |er forma|t which |
|00001920| 69 73 20 75 73 65 66 75 | 6c 20 69 6e 20 6e 61 72 |is usefu|l in nar|
|00001930| 72 6f 77 20 63 6f 6c 75 | 6d 6e 73 20 69 73 0a 25 |row colu|mns is.%|
|00001940| 20 72 61 67 67 65 64 20 | 72 69 67 68 74 2c 20 68 | ragged |right, h|
|00001950| 6f 77 65 76 65 72 20 5c | 4c 61 54 65 58 27 73 20 |owever \|LaTeX's |
|00001960| 22 5c 72 61 67 67 65 64 | 72 69 67 68 74 22 20 6d |"\ragged|right" m|
|00001970| 61 63 72 6f 20 72 65 64 | 65 66 69 6e 65 73 0a 25 |acro red|efines.%|
|00001980| 20 22 5c 5c 22 20 69 6e | 20 61 20 77 61 79 20 77 | "\\" in| a way w|
|00001990| 68 69 63 68 20 63 6f 6e | 66 6c 69 63 74 73 20 77 |hich con|flicts w|
|000019a0| 69 74 68 20 69 74 73 20 | 75 73 65 20 69 6e 20 61 |ith its |use in a|
|000019b0| 20 74 61 62 75 6c 61 72 | 20 6f 72 20 61 72 72 61 | tabular| or arra|
|000019c0| 79 0a 25 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 73 |y.% envi|ronments|
|000019d0| 2e 0a 25 5c 44 65 73 63 | 72 69 62 65 4d 61 63 72 |..%\Desc|ribeMacr|
|000019e0| 6f 7b 5c 61 72 72 61 79 | 62 61 63 6b 73 6c 61 73 |o{\array|backslas|
|000019f0| 68 7d 0a 25 20 46 6f 72 | 20 74 68 69 73 20 72 65 |h}.% For| this re|
|00001a00| 61 73 6f 6e 20 74 68 69 | 73 20 70 61 63 6b 61 67 |ason thi|s packag|
|00001a10| 65 20 69 6e 74 72 6f 64 | 75 63 65 73 20 74 68 65 |e introd|uces the|
|00001a20| 20 63 6f 6d 6d 61 6e 64 | 20 22 5c 61 72 72 61 79 | command| "\array|
|00001a30| 62 61 63 6b 73 6c 61 73 | 68 22 2c 0a 25 20 74 68 |backslas|h",.% th|
|00001a40| 69 73 20 6d 61 79 20 62 | 65 20 75 73 65 64 20 61 |is may b|e used a|
|00001a50| 66 74 65 72 20 61 20 22 | 5c 72 61 67 67 65 64 72 |fter a "|\raggedr|
|00001a60| 69 67 68 74 22 2c 20 22 | 5c 72 61 67 67 65 64 6c |ight", "|\raggedl|
|00001a70| 65 66 74 22 20 20 6f 72 | 0a 25 20 22 5c 63 65 6e |eft" or|.% "\cen|
|00001a80| 74 65 72 69 6e 67 22 20 | 64 65 63 6c 61 72 61 74 |tering" |declarat|
|00001a90| 69 6f 6e 2e 20 54 68 75 | 73 20 61 20 7b 5c 74 74 |ion. Thu|s a {\tt|
|00001aa0| 66 61 6d 69 6c 79 20 74 | 61 62 75 6c 61 72 78 7d |family t|abularx}|
|00001ab0| 20 70 72 65 61 6d 62 6c | 65 20 6d 61 79 0a 25 20 | preambl|e may.% |
|00001ac0| 73 70 65 63 69 66 79 5c | 5c 0a 25 20 22 3e 7b 5c |specify\|\.% ">{\|
|00001ad0| 72 61 67 67 65 64 72 69 | 67 68 74 5c 61 72 72 61 |raggedri|ght\arra|
|00001ae0| 79 62 61 63 6b 73 6c 61 | 73 68 7d 58 22 2e 0a 25 |ybacksla|sh}X"..%|
|00001af0| 0a 25 20 5c 44 65 73 63 | 72 69 62 65 4d 61 63 72 |.% \Desc|ribeMacr|
|00001b00| 6f 7b 5c 6e 65 77 63 6f | 6c 75 6d 6e 74 79 70 65 |o{\newco|lumntype|
|00001b10| 7d 0a 25 20 54 68 65 73 | 65 20 70 72 65 61 6d 62 |}.% Thes|e preamb|
|00001b20| 6c 65 20 73 70 65 63 69 | 66 69 63 61 74 69 6f 6e |le speci|fication|
|00001b30| 73 20 6d 61 79 20 6f 66 | 20 63 6f 75 72 73 65 20 |s may of| course |
|00001b40| 62 65 20 73 61 76 65 64 | 20 75 73 69 6e 67 20 74 |be saved| using t|
|00001b50| 68 65 0a 25 20 63 6f 6d | 6d 61 6e 64 2c 20 22 5c |he.% com|mand, "\|
|00001b60| 6e 65 77 63 6f 6c 75 6d | 6e 74 79 70 65 22 2c 20 |newcolum|ntype", |
|00001b70| 64 65 66 69 6e 65 64 20 | 69 6e 20 7b 5c 74 74 66 |defined |in {\ttf|
|00001b80| 61 6d 69 6c 79 20 61 72 | 72 61 79 2e 73 74 79 7d |amily ar|ray.sty}|
|00001b90| 2e 20 54 68 75 73 20 77 | 65 0a 25 20 6d 61 79 20 |. Thus w|e.% may |
|00001ba0| 73 61 79 5c 5c 0a 25 20 | 22 5c 6e 65 77 63 6f 6c |say\\.% |"\newcol|
|00001bb0| 75 6d 6e 74 79 70 65 7b | 59 7d 7b 3e 7b 5c 73 6d |umntype{|Y}{>{\sm|
|00001bc0| 61 6c 6c 5c 72 61 67 67 | 65 64 72 69 67 68 74 5c |all\ragg|edright\|
|00001bd0| 61 72 72 61 79 62 61 63 | 6b 73 6c 61 73 68 7d 58 |arraybac|kslash}X|
|00001be0| 7d 22 5c 5c 0a 25 20 61 | 6e 64 20 74 68 65 6e 20 |}"\\.% a|nd then |
|00001bf0| 75 73 65 20 7b 5c 74 74 | 66 61 6d 69 6c 79 20 59 |use {\tt|family Y|
|00001c00| 7d 20 69 6e 20 74 68 65 | 20 7b 5c 74 74 66 61 6d |} in the| {\ttfam|
|00001c10| 69 6c 79 20 74 61 62 75 | 6c 61 72 78 7d 20 70 72 |ily tabu|larx} pr|
|00001c20| 65 61 6d 62 6c 65 0a 25 | 20 61 72 67 75 6d 65 6e |eamble.%| argumen|
|00001c30| 74 2e 0a 25 0a 25 20 5c | 44 65 73 63 72 69 62 65 |t..%.% \|Describe|
|00001c40| 4d 61 63 72 6f 7b 5c 74 | 61 62 75 6c 61 72 78 63 |Macro{\t|abularxc|
|00001c50| 6f 6c 75 6d 6e 7d 0a 25 | 20 54 68 65 20 7b 5c 74 |olumn}.%| The {\t|
|00001c60| 74 66 61 6d 69 6c 79 20 | 58 7d 20 63 6f 6c 75 6d |tfamily |X} colum|
|00001c70| 6e 73 20 61 72 65 20 73 | 65 74 20 75 73 69 6e 67 |ns are s|et using|
|00001c80| 20 74 68 65 20 7b 5c 74 | 74 66 61 6d 69 6c 79 20 | the {\t|tfamily |
|00001c90| 70 7d 20 63 6f 6c 75 6d | 6e 20 77 68 69 63 68 0a |p} colum|n which.|
|00001ca0| 25 20 63 6f 72 72 65 73 | 70 6f 6e 64 73 20 20 74 |% corres|ponds t|
|00001cb0| 6f 20 22 5c 70 61 72 62 | 6f 78 5b 74 5d 22 2e 20 |o "\parb|ox[t]". |
|00001cc0| 59 6f 75 20 6d 61 79 20 | 77 61 6e 74 20 74 68 65 |You may |want the|
|00001cd0| 6d 20 73 65 74 20 75 73 | 69 6e 67 2c 20 73 61 79 |m set us|ing, say|
|00001ce0| 2c 20 74 68 65 0a 25 20 | 7b 5c 74 74 66 61 6d 69 |, the.% |{\ttfami|
|00001cf0| 6c 79 20 6d 7d 20 63 6f | 6c 75 6d 6e 2c 20 77 68 |ly m} co|lumn, wh|
|00001d00| 69 63 68 20 63 6f 72 72 | 65 73 70 6f 6e 64 73 20 |ich corr|esponds |
|00001d10| 74 6f 20 22 5c 70 61 72 | 62 6f 78 5b 63 5d 22 2e |to "\par|box[c]".|
|00001d20| 20 49 74 20 69 73 20 6e | 6f 74 0a 25 20 70 6f 73 | It is n|ot.% pos|
|00001d30| 73 69 62 6c 65 20 74 6f | 20 63 68 61 6e 67 65 20 |sible to| change |
|00001d40| 74 68 65 20 63 6f 6c 75 | 6d 6e 20 74 79 70 65 20 |the colu|mn type |
|00001d50| 75 73 69 6e 67 20 74 68 | 65 20 22 3e 22 20 73 79 |using th|e ">" sy|
|00001d60| 6e 74 61 78 2c 20 73 6f | 20 61 6e 6f 74 68 65 72 |ntax, so| another|
|00001d70| 0a 25 20 73 79 73 74 65 | 6d 20 69 73 20 70 72 6f |.% syste|m is pro|
|00001d80| 76 69 64 65 64 2e 20 20 | 22 5c 74 61 62 75 6c 61 |vided. |"\tabula|
|00001d90| 72 78 63 6f 6c 75 6d 6e | 22 20 73 68 6f 75 6c 64 |rxcolumn|" should|
|00001da0| 20 62 65 20 64 65 66 69 | 6e 65 64 20 74 6f 20 62 | be defi|ned to b|
|00001db0| 65 20 61 20 6d 61 63 72 | 6f 0a 25 20 77 69 74 68 |e a macr|o.% with|
|00001dc0| 20 6f 6e 65 20 61 72 67 | 75 6d 65 6e 74 2c 20 77 | one arg|ument, w|
|00001dd0| 68 69 63 68 20 65 78 70 | 61 6e 64 73 20 74 6f 20 |hich exp|ands to |
|00001de0| 74 68 65 20 7b 5c 74 74 | 66 61 6d 69 6c 79 20 74 |the {\tt|family t|
|00001df0| 61 62 75 6c 61 72 7d 20 | 70 72 65 61 6d 62 6c 65 |abular} |preamble|
|00001e00| 0a 25 20 73 70 65 63 69 | 66 69 63 61 74 69 6f 6e |.% speci|fication|
|00001e10| 20 74 68 61 74 20 79 6f | 75 20 77 61 6e 74 20 74 | that yo|u want t|
|00001e20| 6f 20 63 6f 72 72 65 73 | 70 6f 6e 64 20 74 6f 20 |o corres|pond to |
|00001e30| 7b 5c 74 74 66 61 6d 69 | 6c 79 20 58 7d 2e 20 54 |{\ttfami|ly X}. T|
|00001e40| 68 65 0a 25 20 61 72 67 | 75 6d 65 6e 74 20 77 69 |he.% arg|ument wi|
|00001e50| 6c 6c 20 62 65 20 72 65 | 70 6c 61 63 65 64 20 62 |ll be re|placed b|
|00001e60| 79 20 74 68 65 20 63 61 | 6c 63 75 6c 61 74 65 64 |y the ca|lculated|
|00001e70| 20 77 69 64 74 68 20 6f | 66 20 61 20 63 6f 6c 75 | width o|f a colu|
|00001e80| 6d 6e 2e 0a 25 0a 25 20 | 54 68 65 20 64 65 66 61 |mn..%.% |The defa|
|00001e90| 75 6c 74 20 69 73 20 22 | 5c 6e 65 77 63 6f 6d 6d |ult is "|\newcomm|
|00001ea0| 61 6e 64 7b 5c 74 61 62 | 75 6c 61 72 78 63 6f 6c |and{\tab|ularxcol|
|00001eb0| 75 6d 6e 7d 5b 31 5d 7b | 70 7b 23 31 7d 7d 22 2e |umn}[1]{|p{#1}}".|
|00001ec0| 20 53 6f 20 77 65 20 6d | 61 79 0a 25 20 63 68 61 | So we m|ay.% cha|
|00001ed0| 6e 67 65 20 74 68 69 73 | 20 77 69 74 68 20 61 20 |nge this| with a |
|00001ee0| 63 6f 6d 6d 61 6e 64 20 | 73 75 63 68 20 61 73 3a |command |such as:|
|00001ef0| 5c 5c 0a 25 20 22 5c 72 | 65 6e 65 77 63 6f 6d 6d |\\.% "\r|enewcomm|
|00001f00| 61 6e 64 7b 5c 74 61 62 | 75 6c 61 72 78 63 6f 6c |and{\tab|ularxcol|
|00001f10| 75 6d 6e 7d 5b 31 5d 7b | 3e 7b 5c 73 6d 61 6c 6c |umn}[1]{|>{\small|
|00001f20| 7d 6d 7b 23 31 7d 7d 22 | 0a 25 0a 25 20 5c 73 75 |}m{#1}}"|.%.% \su|
|00001f30| 62 73 65 63 74 69 6f 6e | 7b 43 6f 6c 75 6d 6e 20 |bsection|{Column |
|00001f40| 77 69 64 74 68 73 7d 0a | 25 20 4e 6f 72 6d 61 6c |widths}.|% Normal|
|00001f50| 6c 79 20 61 6c 6c 20 7b | 5c 74 74 66 61 6d 69 6c |ly all {|\ttfamil|
|00001f60| 79 20 58 7d 20 63 6f 6c | 75 6d 6e 73 20 69 6e 20 |y X} col|umns in |
|00001f70| 61 20 73 69 6e 67 6c 65 | 20 74 61 62 6c 65 20 61 |a single| table a|
|00001f80| 72 65 20 73 65 74 20 74 | 6f 20 74 68 65 0a 25 20 |re set t|o the.% |
|00001f90| 73 61 6d 65 20 77 69 64 | 74 68 2c 20 68 6f 77 65 |same wid|th, howe|
|00001fa0| 76 65 72 20 69 74 20 69 | 73 20 70 6f 73 73 69 62 |ver it i|s possib|
|00001fb0| 6c 65 20 74 6f 20 6d 61 | 6b 65 20 7b 5c 74 74 66 |le to ma|ke {\ttf|
|00001fc0| 61 6d 69 6c 79 20 74 61 | 62 75 6c 61 72 78 7d 20 |amily ta|bularx} |
|00001fd0| 73 65 74 0a 25 20 74 68 | 65 6d 20 74 6f 20 64 69 |set.% th|em to di|
|00001fe0| 66 66 65 72 65 6e 74 20 | 77 69 64 74 68 73 2e 0a |fferent |widths..|
|00001ff0| 25 20 41 20 70 72 65 61 | 6d 62 6c 65 20 61 72 67 |% A prea|mble arg|
|00002000| 75 6d 65 6e 74 20 6f 66 | 20 22 7b 3e 7b 5c 68 73 |ument of| "{>{\hs|
|00002010| 69 7a 65 3d 2e 35 5c 68 | 73 69 7a 65 7d 58 3e 7b |ize=.5\h|size}X>{|
|00002020| 5c 68 73 69 7a 65 3d 31 | 2e 35 5c 68 73 69 7a 65 |\hsize=1|.5\hsize|
|00002030| 7d 58 7d 22 0a 25 20 73 | 70 65 63 69 66 69 65 73 |}X}".% s|pecifies|
|00002040| 20 74 77 6f 20 63 6f 6c | 75 6d 6e 73 2c 20 74 68 | two col|umns, th|
|00002050| 65 20 73 65 63 6f 6e 64 | 20 77 69 6c 6c 20 62 65 |e second| will be|
|00002060| 20 74 68 72 65 65 20 74 | 69 6d 65 73 20 61 73 20 | three t|imes as |
|00002070| 77 69 64 65 20 61 73 20 | 74 68 65 0a 25 20 66 69 |wide as |the.% fi|
|00002080| 72 73 74 2e 20 48 6f 77 | 65 76 65 72 20 69 66 20 |rst. How|ever if |
|00002090| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 70 6c 61 79 |you want| to play|
|000020a0| 20 67 61 6d 65 73 20 6c | 69 6b 65 20 74 68 69 73 | games l|ike this|
|000020b0| 20 79 6f 75 20 73 68 6f | 75 6c 64 20 66 6f 6c 6c | you sho|uld foll|
|000020c0| 6f 77 0a 25 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |ow.% the| followi|
|000020d0| 6e 67 20 74 77 6f 20 72 | 75 6c 65 73 2e 0a 25 20 |ng two r|ules..% |
|000020e0| 5c 62 65 67 69 6e 7b 69 | 74 65 6d 69 7a 65 7d 0a |\begin{i|temize}.|
|000020f0| 25 20 5c 69 74 65 6d 20 | 4d 61 6b 65 20 73 75 72 |% \item |Make sur|
|00002100| 65 20 74 68 61 74 20 74 | 68 65 20 73 75 6d 20 6f |e that t|he sum o|
|00002110| 66 20 74 68 65 20 77 69 | 64 74 68 73 20 6f 66 20 |f the wi|dths of |
|00002120| 61 6c 6c 20 74 68 65 20 | 7b 5c 74 74 66 61 6d 69 |all the |{\ttfami|
|00002130| 6c 79 20 58 7d 0a 25 20 | 63 6f 6c 75 6d 6e 73 20 |ly X}.% |columns |
|00002140| 69 73 20 75 6e 63 68 61 | 6e 67 65 64 2e 20 28 49 |is uncha|nged. (I|
|00002150| 6e 20 74 68 65 20 61 62 | 6f 76 65 20 65 78 61 6d |n the ab|ove exam|
|00002160| 70 6c 65 2c 20 74 68 65 | 20 6e 65 77 20 77 69 64 |ple, the| new wid|
|00002170| 74 68 73 20 73 74 69 6c | 6c 20 61 64 64 0a 25 20 |ths stil|l add.% |
|00002180| 75 70 20 74 6f 20 74 77 | 69 63 65 20 74 68 65 20 |up to tw|ice the |
|00002190| 64 65 66 61 75 6c 74 20 | 77 69 64 74 68 2c 20 74 |default |width, t|
|000021a0| 68 65 20 73 61 6d 65 20 | 61 73 20 74 77 6f 20 73 |he same |as two s|
|000021b0| 74 61 6e 64 61 72 64 20 | 7b 5c 74 74 66 61 6d 69 |tandard |{\ttfami|
|000021c0| 6c 79 20 58 7d 0a 25 20 | 63 6f 6c 75 6d 6e 73 2e |ly X}.% |columns.|
|000021d0| 29 0a 25 20 5c 69 74 65 | 6d 20 44 6f 20 6e 6f 74 |).% \ite|m Do not|
|000021e0| 20 75 73 65 20 22 5c 6d | 75 6c 74 69 63 6f 6c 75 | use "\m|ulticolu|
|000021f0| 6d 6e 22 20 65 6e 74 72 | 69 65 73 20 77 68 69 63 |mn" entr|ies whic|
|00002200| 68 20 63 72 6f 73 73 20 | 61 6e 79 20 7b 5c 74 74 |h cross |any {\tt|
|00002210| 66 61 6d 69 6c 79 20 58 | 7d 0a 25 20 63 6f 6c 75 |family X|}.% colu|
|00002220| 6d 6e 2e 0a 25 20 5c 65 | 6e 64 7b 69 74 65 6d 69 |mn..% \e|nd{itemi|
|00002230| 7a 65 7d 0a 25 20 41 73 | 20 77 69 74 68 20 6d 6f |ze}.% As| with mo|
|00002240| 73 74 20 72 75 6c 65 73 | 2c 20 74 68 65 73 65 20 |st rules|, these |
|00002250| 6d 61 79 20 62 65 20 62 | 72 6f 6b 65 6e 20 69 66 |may be b|roken if|
|00002260| 20 79 6f 75 20 6b 6e 6f | 77 20 77 68 61 74 20 79 | you kno|w what y|
|00002270| 6f 75 20 61 72 65 0a 25 | 20 64 6f 69 6e 67 2e 0a |ou are.%| doing..|
|00002280| 25 0a 25 20 5c 53 74 6f | 70 45 76 65 6e 74 75 61 |%.% \Sto|pEventua|
|00002290| 6c 6c 79 7b 7d 0a 25 0a | 25 20 5c 73 65 63 74 69 |lly{}.%.|% \secti|
|000022a0| 6f 6e 7b 54 68 65 20 4d | 61 63 72 6f 73 7d 0a 25 |on{The M|acros}.%|
|000022b0| 0a 25 20 20 20 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |.% \b|egin{mac|
|000022c0| 72 6f 63 6f 64 65 7d 0a | 25 3c 2a 70 61 63 6b 61 |rocode}.|%<*packa|
|000022d0| 67 65 3e 0a 25 20 20 20 | 20 5c 65 6e 64 7b 6d 61 |ge>.% | \end{ma|
|000022e0| 63 72 6f 63 6f 64 65 7d | 0a 25 0a 25 20 5c 63 68 |crocode}|.%.% \ch|
|000022f0| 61 6e 67 65 73 7b 76 32 | 2e 30 30 7d 7b 31 39 39 |anges{v2|.00}{199|
|00002300| 34 2f 30 32 2f 30 37 7d | 0a 25 20 20 20 20 7b 4e |4/02/07}|.% {N|
|00002310| 65 77 20 4f 70 74 69 6f | 6e 20 48 61 6e 64 6c 69 |ew Optio|n Handli|
|00002320| 6e 67 7d 0a 25 20 20 20 | 20 5c 62 65 67 69 6e 7b |ng}.% | \begin{|
|00002330| 6d 61 63 72 6f 63 6f 64 | 65 7d 0a 5c 44 65 63 6c |macrocod|e}.\Decl|
|00002340| 61 72 65 4f 70 74 69 6f | 6e 7b 69 6e 66 6f 73 68 |areOptio|n{infosh|
|00002350| 6f 77 7d 7b 5c 41 74 45 | 6e 64 4f 66 50 61 63 6b |ow}{\AtE|ndOfPack|
|00002360| 61 67 65 5c 74 72 61 63 | 69 6e 67 74 61 62 75 6c |age\trac|ingtabul|
|00002370| 61 72 78 7d 0a 5c 44 65 | 63 6c 61 72 65 4f 70 74 |arx}.\De|clareOpt|
|00002380| 69 6f 6e 7b 64 65 62 75 | 67 73 68 6f 77 7d 7b 5c |ion{debu|gshow}{\|
|00002390| 41 74 45 6e 64 4f 66 50 | 61 63 6b 61 67 65 5c 74 |AtEndOfP|ackage\t|
|000023a0| 72 61 63 69 6e 67 74 61 | 62 75 6c 61 72 78 7d 0a |racingta|bularx}.|
|000023b0| 5c 50 72 6f 63 65 73 73 | 4f 70 74 69 6f 6e 73 0a |\Process|Options.|
|000023c0| 25 20 20 20 20 5c 65 6e | 64 7b 6d 61 63 72 6f 63 |% \en|d{macroc|
|000023d0| 6f 64 65 7d 0a 25 0a 25 | 20 54 68 69 73 20 72 65 |ode}.%.%| This re|
|000023e0| 71 75 69 72 65 73 20 7b | 5c 74 74 66 61 6d 69 6c |quires {|\ttfamil|
|000023f0| 79 20 61 72 72 61 79 2e | 73 74 79 7d 2e 0a 25 20 |y array.|sty}..% |
|00002400| 5c 63 68 61 6e 67 65 73 | 7b 76 32 2e 30 30 7d 7b |\changes|{v2.00}{|
|00002410| 31 39 39 34 2f 30 32 2f | 30 37 7d 0a 25 20 20 20 |1994/02/|07}.% |
|00002420| 20 7b 55 73 65 20 4c 61 | 54 65 58 32 65 27 73 20 | {Use La|TeX2e's |
|00002430| 5c 63 6d 64 7b 5c 52 65 | 71 75 69 72 65 50 61 63 |\cmd{\Re|quirePac|
|00002440| 6b 61 67 65 7d 20 74 6f | 20 6c 6f 61 64 20 61 72 |kage} to| load ar|
|00002450| 72 61 79 7d 0a 25 20 20 | 20 20 5c 62 65 67 69 6e |ray}.% | \begin|
|00002460| 7b 6d 61 63 72 6f 63 6f | 64 65 7d 0a 5c 52 65 71 |{macroco|de}.\Req|
|00002470| 75 69 72 65 50 61 63 6b | 61 67 65 7b 61 72 72 61 |uirePack|age{arra|
|00002480| 79 7d 5b 31 39 39 34 2f | 30 32 2f 30 33 5d 0a 25 |y}[1994/|02/03].%|
|00002490| 20 20 20 20 5c 65 6e 64 | 7b 6d 61 63 72 6f 63 6f | \end|{macroco|
|000024a0| 64 65 7d 0a 25 0a 25 20 | 46 69 72 73 74 20 73 6f |de}.%.% |First so|
|000024b0| 6d 65 20 72 65 67 69 73 | 74 65 72 73 20 65 74 63 |me regis|ters etc|
|000024c0| 2e 5c 20 74 68 61 74 20 | 77 65 20 6e 65 65 64 2e |.\ that |we need.|
|000024d0| 0a 25 20 20 20 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |.% \b|egin{mac|
|000024e0| 72 6f 63 6f 64 65 7d 0a | 5c 6e 65 77 64 69 6d 65 |rocode}.|\newdime|
|000024f0| 6e 5c 54 58 40 63 6f 6c | 40 77 69 64 74 68 0a 5c |n\TX@col|@width.\|
|00002500| 6e 65 77 64 69 6d 65 6e | 5c 54 58 40 6f 6c 64 40 |newdimen|\TX@old@|
|00002510| 74 61 62 6c 65 0a 5c 6e | 65 77 64 69 6d 65 6e 5c |table.\n|ewdimen\|
|00002520| 54 58 40 6f 6c 64 40 63 | 6f 6c 0a 5c 6e 65 77 64 |TX@old@c|ol.\newd|
|00002530| 69 6d 65 6e 5c 54 58 40 | 74 61 72 67 65 74 0a 5c |imen\TX@|target.\|
|00002540| 6e 65 77 64 69 6d 65 6e | 5c 54 58 40 64 65 6c 74 |newdimen|\TX@delt|
|00002550| 61 0a 5c 6e 65 77 63 6f | 75 6e 74 5c 54 58 40 63 |a.\newco|unt\TX@c|
|00002560| 6f 6c 73 0a 5c 6e 65 77 | 69 66 5c 69 66 54 58 40 |ols.\new|if\ifTX@|
|00002570| 0a 25 20 20 20 20 5c 65 | 6e 64 7b 6d 61 63 72 6f |.% \e|nd{macro|
|00002580| 63 6f 64 65 7d 0a 25 0a | 25 20 4e 6f 77 20 61 20 |code}.%.|% Now a |
|00002590| 74 72 69 63 6b 20 74 6f | 20 67 65 74 20 74 68 65 |trick to| get the|
|000025a0| 20 62 6f 64 79 20 6f 66 | 20 61 6e 20 65 6e 76 69 | body of| an envi|
|000025b0| 72 6f 6e 6d 65 6e 74 20 | 69 6e 74 6f 20 61 20 74 |ronment |into a t|
|000025c0| 6f 6b 65 6e 20 72 65 67 | 69 73 74 65 72 2c 0a 25 |oken reg|ister,.%|
|000025d0| 20 77 69 74 68 6f 75 74 | 20 64 6f 69 6e 67 20 61 | without| doing a|
|000025e0| 6e 79 20 65 78 70 61 6e | 73 69 6f 6e 2e 20 54 68 |ny expan|sion. Th|
|000025f0| 69 73 20 64 6f 65 73 20 | 6e 6f 74 20 64 6f 20 61 |is does |not do a|
|00002600| 6e 79 20 72 65 61 6c 20 | 63 68 65 63 6b 69 6e 67 |ny real |checking|
|00002610| 20 6f 66 0a 25 20 6e 65 | 73 74 65 64 20 65 6e 76 | of.% ne|sted env|
|00002620| 69 72 6f 6e 6d 65 6e 74 | 73 2c 20 73 6f 20 69 66 |ironment|s, so if|
|00002630| 20 79 6f 75 20 73 68 6f | 75 6c 64 20 6e 65 65 64 | you sho|uld need|
|00002640| 20 74 6f 20 6e 65 73 74 | 20 6f 6e 65 20 7b 5c 74 | to nest| one {\t|
|00002650| 74 66 61 6d 69 6c 79 0a | 25 20 74 61 62 75 6c 61 |tfamily.|% tabula|
|00002660| 72 78 7d 20 69 6e 73 69 | 64 65 20 61 6e 6f 74 68 |rx} insi|de anoth|
|00002670| 65 72 2c 20 74 68 65 20 | 69 6e 6e 65 72 20 6f 6e |er, the |inner on|
|00002680| 65 20 6d 75 73 74 20 62 | 65 20 73 75 72 72 6f 75 |e must b|e surrou|
|00002690| 6e 64 65 64 20 62 79 20 | 22 7b 20 7d 22 2e 0a 25 |nded by |"{ }"..%|
|000026a0| 0a 25 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 7d |.% \begi|n{macro}|
|000026b0| 7b 5c 74 61 62 75 6c 61 | 72 78 7d 0a 25 20 50 72 |{\tabula|rx}.% Pr|
|000026c0| 69 6f 72 20 74 6f 20 76 | 31 2e 30 36 2c 20 54 68 |ior to v|1.06, Th|
|000026d0| 69 73 20 6d 61 63 72 6f | 20 74 6f 6f 6b 20 74 77 |is macro| took tw|
|000026e0| 6f 20 61 72 67 75 6d 65 | 6e 74 73 2c 20 77 68 69 |o argume|nts, whi|
|000026f0| 63 68 20 77 65 72 65 20 | 73 61 76 65 64 20 69 6e |ch were |saved in|
|00002700| 0a 25 20 73 65 70 61 72 | 61 74 65 20 72 65 67 69 |.% separ|ate regi|
|00002710| 73 74 65 72 73 20 62 65 | 66 6f 72 65 20 74 68 65 |sters be|fore the|
|00002720| 20 74 61 62 6c 65 20 62 | 6f 64 79 20 77 61 73 20 | table b|ody was |
|00002730| 73 61 76 65 64 20 62 79 | 20 22 5c 54 58 40 67 65 |saved by| "\TX@ge|
|00002740| 74 40 62 6f 64 79 22 2e | 0a 25 20 55 6e 66 6f 72 |t@body".|.% Unfor|
|00002750| 74 75 6e 61 74 6c 79 20 | 74 68 69 73 20 64 69 73 |tunatly |this dis|
|00002760| 61 62 6c 65 73 20 74 68 | 65 20 22 5b 74 5d 22 20 |ables th|e "[t]" |
|00002770| 6f 70 74 69 6f 6e 61 6c | 20 61 72 67 75 6d 65 6e |optional| argumen|
|00002780| 74 2e 20 4e 6f 77 20 6a | 75 73 74 20 73 61 76 65 |t. Now j|ust save|
|00002790| 0a 25 20 74 68 65 20 77 | 69 64 74 68 20 73 70 65 |.% the w|idth spe|
|000027a0| 63 69 66 69 63 61 74 69 | 6f 6e 20 73 65 70 61 72 |cificati|on separ|
|000027b0| 61 74 65 6c 79 2c 20 74 | 68 65 6e 20 63 6c 65 61 |ately, t|hen clea|
|000027c0| 72 20 74 68 65 20 74 6f | 6b 65 6e 20 72 65 67 69 |r the to|ken regi|
|000027d0| 73 74 65 72 0a 25 20 22 | 5c 74 6f 6b 73 40 22 2e |ster.% "|\toks@".|
|000027e0| 0a 25 20 46 69 6e 61 6c | 6c 79 20 63 61 6c 6c 20 |.% Final|ly call |
|000027f0| 22 5c 54 58 40 67 65 74 | 40 62 6f 64 79 22 20 74 |"\TX@get|@body" t|
|00002800| 6f 20 62 65 67 69 6e 20 | 73 61 76 69 6e 67 20 74 |o begin |saving t|
|00002810| 68 65 20 62 6f 64 79 20 | 6f 66 20 74 68 65 20 74 |he body |of the t|
|00002820| 61 62 6c 65 2e 0a 25 20 | 54 68 65 20 22 7b 5c 69 |able..% |The "{\i|
|00002830| 66 6e 75 6d 30 3d 60 7d | 5c 66 69 22 20 77 61 73 |fnum0=`}|\fi" was|
|00002840| 20 61 64 64 65 64 20 61 | 74 20 76 31 2e 30 33 2c | added a|t v1.03,|
|00002850| 20 74 6f 20 61 6c 6c 6f | 77 20 22 74 61 62 75 6c | to allo|w "tabul|
|00002860| 61 72 78 22 20 74 6f 20 | 61 70 70 65 61 72 0a 25 |arx" to |appear.%|
|00002870| 20 69 6e 73 69 64 65 20 | 61 20 22 5c 68 61 6c 69 | inside |a "\hali|
|00002880| 67 6e 22 2e 5e 5e 41 0a | 25 20 5c 73 65 74 62 6f |gn".^^A.|% \setbo|
|00002890| 78 30 3d 5c 68 62 6f 78 | 7b 5c 66 6f 6f 74 6e 6f |x0=\hbox|{\footno|
|000028a0| 74 65 73 69 7a 65 22 5c | 69 66 66 61 6c 73 65 7b |tesize"\|iffalse{|
|000028b0| 5c 66 69 5c 69 66 6e 75 | 6d 30 3d 60 7d 5c 66 69 |\fi\ifnu|m0=`}\fi|
|000028c0| 22 7d 5e 5e 41 0a 25 20 | 5c 73 65 74 62 6f 78 32 |"}^^A.% |\setbox2|
|000028d0| 3d 5c 68 62 6f 78 7b 5c | 66 6f 6f 74 6e 6f 74 65 |=\hbox{\|footnote|
|000028e0| 73 69 7a 65 22 5c 69 66 | 6e 75 6d 30 3d 60 7b 7d |size"\if|num0=`{}|
|000028f0| 5c 66 69 22 7d 5e 5e 41 | 0a 25 20 5c 66 6f 6f 74 |\fi"}^^A|.% \foot|
|00002900| 6e 6f 74 65 7b 54 68 69 | 73 20 61 64 64 73 20 61 |note{Thi|s adds a|
|00002910| 6e 20 65 78 74 72 61 20 | 6c 65 76 65 6c 20 6f 66 |n extra |level of|
|00002920| 20 67 72 6f 75 70 69 6e | 67 2c 0a 25 20 77 68 69 | groupin|g,.% whi|
|00002930| 63 68 20 69 73 20 6e 6f | 74 20 72 65 61 6c 6c 79 |ch is no|t really|
|00002940| 20 6e 65 65 64 65 64 2e | 20 49 6e 73 74 65 61 64 | needed.| Instead|
|00002950| 2c 20 49 20 63 6f 75 6c | 64 20 75 73 65 20 5c 62 |, I coul|d use \b|
|00002960| 6f 78 30 5c 20 68 65 72 | 65 2c 20 61 6e 64 0a 25 |ox0\ her|e, and.%|
|00002970| 20 5c 62 6f 78 32 5c 20 | 62 65 6c 6f 77 2c 20 68 | \box2\ |below, h|
|00002980| 6f 77 65 76 65 72 20 74 | 68 65 20 63 6f 64 65 20 |owever t|he code |
|00002990| 68 65 72 65 20 77 6f 75 | 6c 64 20 74 68 65 6e 20 |here wou|ld then |
|000029a0| 68 61 76 65 20 74 6f 20 | 62 65 20 6d 6f 76 65 64 |have to |be moved|
|000029b0| 20 61 66 74 65 72 0a 25 | 20 74 68 65 20 66 69 72 | after.%| the fir|
|000029c0| 73 74 20 6c 69 6e 65 2c | 20 62 65 63 61 75 73 65 |st line,| because|
|000029d0| 20 6f 66 20 74 68 65 20 | 66 6f 6f 74 6e 6f 74 65 | of the |footnote|
|000029e0| 20 74 6f 20 70 61 67 65 | 20 33 38 36 20 6f 66 20 | to page| 386 of |
|000029f0| 74 68 65 20 5c 54 65 58 | 7b 7d 42 6f 6f 6b 2c 0a |the \TeX|{}Book,.|
|00002a00| 25 20 61 6e 64 20 49 20 | 64 6f 20 6e 6f 74 20 74 |% and I |do not t|
|00002a10| 68 69 6e 6b 20 49 20 73 | 68 6f 75 6c 64 20 62 65 |hink I s|hould be|
|00002a20| 20 77 72 69 74 69 6e 67 | 20 63 6f 64 65 20 74 68 | writing| code th|
|00002a30| 61 74 20 69 73 20 73 6f | 20 6f 62 73 63 75 72 65 |at is so| obscure|
|00002a40| 20 61 73 20 74 6f 0a 25 | 20 62 65 20 64 6f 63 75 | as to.%| be docu|
|00002a50| 6d 65 6e 74 65 64 20 69 | 6e 20 61 20 66 6f 6f 74 |mented i|n a foot|
|00002a60| 6e 6f 74 65 20 69 6e 20 | 61 6e 20 61 70 70 65 6e |note in |an appen|
|00002a70| 64 69 78 20 63 61 6c 6c | 65 64 20 60 60 44 69 72 |dix call|ed ``Dir|
|00002a80| 74 79 20 54 72 69 63 6b | 73 27 27 21 7d 0a 25 20 |ty Trick|s''!}.% |
|00002a90| 20 20 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 63 | \begi|n{macroc|
|00002aa0| 6f 64 65 7d 0a 5c 64 65 | 66 5c 74 61 62 75 6c 61 |ode}.\de|f\tabula|
|00002ab0| 72 78 23 31 7b 25 0a 20 | 20 7b 5c 69 66 6e 75 6d |rx#1{%. | {\ifnum|
|00002ac0| 30 3d 60 7d 5c 66 69 0a | 25 20 20 20 20 5c 65 6e |0=`}\fi.|% \en|
|00002ad0| 64 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 25 20 22 |d{macroc|ode}.% "|
|00002ae0| 5c 72 65 6c 61 78 22 20 | 61 64 64 65 64 20 61 74 |\relax" |added at|
|00002af0| 20 76 31 2e 30 35 20 73 | 6f 20 74 68 61 74 20 6e | v1.05 s|o that n|
|00002b00| 6f 6e 2d 65 78 70 61 6e | 64 61 62 6c 65 20 6c 65 |on-expan|dable le|
|00002b10| 6e 67 74 68 20 74 6f 6b | 65 6e 73 2c 20 6c 69 6b |ngth tok|ens, lik|
|00002b20| 65 0a 25 20 22 5c 74 65 | 78 74 77 69 64 74 68 22 |e.% "\te|xtwidth"|
|00002b30| 20 64 6f 20 6e 6f 74 20 | 67 65 6e 65 72 61 74 65 | do not |generate|
|00002b40| 20 61 6e 20 65 78 74 72 | 61 20 73 70 61 63 65 2c | an extr|a space,|
|00002b50| 20 61 6e 64 20 61 6e 20 | 6f 76 65 72 66 75 6c 6c | and an |overfull|
|00002b60| 20 62 6f 78 2e 0a 25 20 | 20 20 20 5c 62 65 67 69 | box..% | \begi|
|00002b70| 6e 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 20 20 5c |n{macroc|ode}. \|
|00002b80| 54 58 40 74 61 72 67 65 | 74 23 31 5c 72 65 6c 61 |TX@targe|t#1\rela|
|00002b90| 78 0a 20 20 5c 54 58 40 | 74 79 70 65 6f 75 74 7b |x. \TX@|typeout{|
|00002ba0| 54 61 72 67 65 74 20 77 | 69 64 74 68 3a 20 23 31 |Target w|idth: #1|
|00002bb0| 20 3d 20 5c 74 68 65 5c | 54 58 40 74 61 72 67 65 | = \the\|TX@targe|
|00002bc0| 74 2e 7d 25 0a 20 20 5c | 74 6f 6b 73 40 7b 7d 5c |t.}%. \|toks@{}\|
|00002bd0| 54 58 40 67 65 74 40 62 | 6f 64 79 7d 0a 25 20 20 |TX@get@b|ody}.% |
|00002be0| 20 20 5c 65 6e 64 7b 6d | 61 63 72 6f 63 6f 64 65 | \end{m|acrocode|
|00002bf0| 7d 0a 25 20 5c 65 6e 64 | 7b 6d 61 63 72 6f 7d 0a |}.% \end|{macro}.|
|00002c00| 25 0a 25 20 5c 62 65 67 | 69 6e 7b 6d 61 63 72 6f |%.% \beg|in{macro|
|00002c10| 7d 7b 5c 54 58 40 67 65 | 74 40 62 6f 64 79 7d 0a |}{\TX@ge|t@body}.|
|00002c20| 25 20 50 6c 61 63 65 20 | 61 6c 6c 20 74 6f 6b 65 |% Place |all toke|
|00002c30| 6e 73 20 61 73 20 66 61 | 72 20 61 73 20 74 68 65 |ns as fa|r as the|
|00002c40| 20 66 69 72 73 74 20 22 | 5c 65 6e 64 22 20 69 6e | first "|\end" in|
|00002c50| 74 6f 20 61 20 74 6f 6b | 65 6e 20 72 65 67 69 73 |to a tok|en regis|
|00002c60| 74 65 72 2e 0a 25 20 54 | 68 65 6e 20 63 61 6c 6c |ter..% T|hen call|
|00002c70| 20 22 5c 54 58 40 66 69 | 6e 64 40 65 6e 64 22 20 | "\TX@fi|nd@end" |
|00002c80| 74 6f 20 73 65 65 20 69 | 66 20 77 65 20 61 72 65 |to see i|f we are|
|00002c90| 20 61 74 20 22 5c 65 6e | 64 7b 74 61 62 75 6c 61 | at "\en|d{tabula|
|00002ca0| 72 78 7d 22 2e 0a 25 20 | 20 20 20 5c 62 65 67 69 |rx}"..% | \begi|
|00002cb0| 6e 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 5c 6c 6f |n{macroc|ode}.\lo|
|00002cc0| 6e 67 5c 64 65 66 5c 54 | 58 40 67 65 74 40 62 6f |ng\def\T|X@get@bo|
|00002cd0| 64 79 23 31 5c 65 6e 64 | 0a 20 20 7b 5c 74 6f 6b |dy#1\end|. {\tok|
|00002ce0| 73 40 5c 65 78 70 61 6e | 64 61 66 74 65 72 7b 5c |s@\expan|dafter{\|
|00002cf0| 74 68 65 5c 74 6f 6b 73 | 40 23 31 7d 5c 54 58 40 |the\toks|@#1}\TX@|
|00002d00| 66 69 6e 64 40 65 6e 64 | 7d 0a 25 20 20 20 20 5c |find@end|}.% \|
|00002d10| 65 6e 64 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 25 |end{macr|ocode}.%|
|00002d20| 20 5c 65 6e 64 7b 6d 61 | 63 72 6f 7d 0a 25 0a 25 | \end{ma|cro}.%.%|
|00002d30| 20 5c 62 65 67 69 6e 7b | 6d 61 63 72 6f 7d 7b 5c | \begin{|macro}{\|
|00002d40| 54 58 40 66 69 6e 64 40 | 65 6e 64 7d 0a 25 20 49 |TX@find@|end}.% I|
|00002d50| 66 20 77 65 20 61 72 65 | 20 61 74 20 22 5c 65 6e |f we are| at "\en|
|00002d60| 64 7b 74 61 62 75 6c 61 | 72 78 7d 22 2c 20 63 61 |d{tabula|rx}", ca|
|00002d70| 6c 6c 20 22 5c 54 58 40 | 65 6e 64 74 61 62 75 6c |ll "\TX@|endtabul|
|00002d80| 61 72 78 22 2c 20 6f 74 | 68 65 72 77 69 73 65 0a |arx", ot|herwise.|
|00002d90| 25 20 61 64 64 20 22 5c | 65 6e 64 7b 2e 2e 2e 7d |% add "\|end{...}|
|00002da0| 22 20 74 6f 20 74 68 65 | 20 72 65 67 69 73 74 65 |" to the| registe|
|00002db0| 72 2c 20 61 6e 64 20 63 | 61 6c 6c 20 22 5c 54 58 |r, and c|all "\TX|
|00002dc0| 40 67 65 74 40 62 6f 64 | 79 22 20 61 67 61 69 6e |@get@bod|y" again|
|00002dd0| 2e 0a 25 20 20 20 20 5c | 62 65 67 69 6e 7b 6d 61 |..% \|begin{ma|
|00002de0| 63 72 6f 63 6f 64 65 7d | 0a 5c 64 65 66 5c 54 58 |crocode}|.\def\TX|
|00002df0| 40 66 69 6e 64 40 65 6e | 64 23 31 7b 25 0a 20 20 |@find@en|d#1{%. |
|00002e00| 5c 64 65 66 5c 40 74 65 | 6d 70 61 7b 23 31 7d 25 |\def\@te|mpa{#1}%|
|00002e10| 0a 20 20 5c 69 66 78 5c | 40 74 65 6d 70 61 5c 54 |. \ifx\|@tempa\T|
|00002e20| 58 40 5c 65 78 70 61 6e | 64 61 66 74 65 72 5c 54 |X@\expan|dafter\T|
|00002e30| 58 40 65 6e 64 74 61 62 | 75 6c 61 72 78 0a 20 20 |X@endtab|ularx. |
|00002e40| 5c 65 6c 73 65 5c 74 6f | 6b 73 40 5c 65 78 70 61 |\else\to|ks@\expa|
|00002e50| 6e 64 61 66 74 65 72 0a | 20 20 20 20 7b 5c 74 68 |ndafter.| {\th|
|00002e60| 65 5c 74 6f 6b 73 40 5c | 65 6e 64 7b 23 31 7d 7d |e\toks@\|end{#1}}|
|00002e70| 5c 65 78 70 61 6e 64 61 | 66 74 65 72 5c 54 58 40 |\expanda|fter\TX@|
|00002e80| 67 65 74 40 62 6f 64 79 | 5c 66 69 7d 0a 25 20 20 |get@body|\fi}.% |
|00002e90| 20 20 5c 65 6e 64 7b 6d | 61 63 72 6f 63 6f 64 65 | \end{m|acrocode|
|00002ea0| 7d 0a 25 20 5c 65 6e 64 | 7b 6d 61 63 72 6f 7d 0a |}.% \end|{macro}.|
|00002eb0| 25 0a 25 20 5c 62 65 67 | 69 6e 7b 6d 61 63 72 6f |%.% \beg|in{macro|
|00002ec0| 7d 7b 5c 54 58 40 7d 0a | 25 20 54 68 65 20 73 74 |}{\TX@}.|% The st|
|00002ed0| 72 69 6e 67 20 7b 5c 74 | 74 66 61 6d 69 6c 79 20 |ring {\t|tfamily |
|00002ee0| 74 61 62 75 6c 61 72 78 | 7d 20 61 73 20 61 20 6d |tabularx|} as a m|
|00002ef0| 61 63 72 6f 20 66 6f 72 | 20 74 65 73 74 69 6e 67 |acro for| testing|
|00002f00| 20 77 69 74 68 20 22 5c | 69 66 78 22 2e 0a 25 20 | with "\|ifx"..% |
|00002f10| 20 20 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 63 | \begi|n{macroc|
|00002f20| 6f 64 65 7d 0a 5c 64 65 | 66 5c 54 58 40 7b 74 61 |ode}.\de|f\TX@{ta|
|00002f30| 62 75 6c 61 72 78 7d 0a | 25 20 20 20 20 5c 65 6e |bularx}.|% \en|
|00002f40| 64 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 25 20 5c |d{macroc|ode}.% \|
|00002f50| 65 6e 64 7b 6d 61 63 72 | 6f 7d 0a 25 0a 25 20 4e |end{macr|o}.%.% N|
|00002f60| 6f 77 20 74 68 61 74 20 | 61 6c 6c 20 74 68 65 20 |ow that |all the |
|00002f70| 70 61 72 74 73 20 6f 66 | 20 74 68 65 20 74 61 62 |parts of| the tab|
|00002f80| 6c 65 20 73 70 65 63 69 | 66 69 63 61 74 69 6f 6e |le speci|fication|
|00002f90| 20 61 72 65 20 73 74 6f | 72 65 64 20 69 6e 0a 25 | are sto|red in.%|
|00002fa0| 20 72 65 67 69 73 74 65 | 72 73 2c 20 77 65 20 63 | registe|rs, we c|
|00002fb0| 61 6e 20 62 65 67 69 6e | 20 74 68 65 20 77 6f 72 |an begin| the wor|
|00002fc0| 6b 20 6f 66 20 73 65 74 | 74 69 6e 67 20 74 68 65 |k of set|ting the|
|00002fd0| 20 74 61 62 6c 65 2e 0a | 25 0a 25 20 54 68 65 20 | table..|%.% The |
|00002fe0| 61 6c 67 6f 72 69 74 68 | 6d 20 66 6f 72 20 66 69 |algorith|m for fi|
|00002ff0| 6e 64 69 6e 67 20 74 68 | 65 20 63 6f 72 72 65 63 |nding th|e correc|
|00003000| 74 20 63 6f 6c 75 6d 6e | 20 77 69 64 74 68 73 20 |t column| widths |
|00003010| 69 73 20 61 73 20 66 6f | 6c 6c 6f 77 73 2e 0a 25 |is as fo|llows..%|
|00003020| 20 46 69 72 73 74 6c 79 | 20 73 65 74 20 74 68 65 | Firstly| set the|
|00003030| 20 74 61 62 6c 65 20 77 | 69 74 68 20 65 61 63 68 | table w|ith each|
|00003040| 20 7b 5c 74 74 66 61 6d | 69 6c 79 20 58 7d 20 63 | {\ttfam|ily X} c|
|00003050| 6f 6c 75 6d 6e 20 74 68 | 65 20 77 69 64 74 68 20 |olumn th|e width |
|00003060| 6f 66 20 74 68 65 0a 25 | 20 66 69 6e 61 6c 20 74 |of the.%| final t|
|00003070| 61 62 6c 65 2e 20 41 73 | 73 75 6d 69 6e 67 20 74 |able. As|suming t|
|00003080| 68 61 74 20 74 68 65 72 | 65 20 69 73 20 61 74 20 |hat ther|e is at |
|00003090| 6c 65 61 73 74 20 6f 6e | 65 20 7b 5c 74 74 66 61 |least on|e {\ttfa|
|000030a0| 6d 69 6c 79 20 58 7d 20 | 63 6f 6c 75 6d 6e 2c 0a |mily X} |column,.|
|000030b0| 25 20 74 68 69 73 20 77 | 69 6c 6c 20 70 72 6f 64 |% this w|ill prod|
|000030c0| 75 63 65 20 61 20 74 61 | 62 6c 65 20 74 68 61 74 |uce a ta|ble that|
|000030d0| 20 69 73 20 74 6f 6f 20 | 77 69 64 65 2e 20 44 69 | is too |wide. Di|
|000030e0| 76 69 64 65 20 74 68 65 | 20 65 78 63 65 73 73 20 |vide the| excess |
|000030f0| 77 69 64 74 68 20 62 79 | 0a 25 20 74 68 65 20 6e |width by|.% the n|
|00003100| 75 6d 62 65 72 20 6f 66 | 20 7b 5c 74 74 66 61 6d |umber of| {\ttfam|
|00003110| 69 6c 79 20 58 7d 20 63 | 6f 6c 75 6d 6e 73 2c 20 |ily X} c|olumns, |
|00003120| 61 6e 64 20 72 65 64 75 | 63 65 20 74 68 65 20 63 |and redu|ce the c|
|00003130| 6f 6c 75 6d 6e 20 77 69 | 64 74 68 20 62 79 0a 25 |olumn wi|dth by.%|
|00003140| 20 74 68 69 73 20 61 6d | 6f 75 6e 74 2e 20 52 65 | this am|ount. Re|
|00003150| 73 65 74 20 74 68 65 20 | 74 61 62 6c 65 2e 20 49 |set the |table. I|
|00003160| 66 20 74 68 65 20 74 61 | 62 6c 65 20 69 73 20 6e |f the ta|ble is n|
|00003170| 6f 74 20 6e 6f 77 20 74 | 68 65 20 63 6f 72 72 65 |ot now t|he corre|
|00003180| 63 74 0a 25 20 77 69 64 | 74 68 2c 20 61 20 22 5c |ct.% wid|th, a "\|
|00003190| 6d 75 6c 74 69 63 6f 6c | 75 6d 6e 22 20 65 6e 74 |multicol|umn" ent|
|000031a0| 72 79 20 6d 75 73 74 20 | 62 65 20 60 68 69 64 69 |ry must |be `hidi|
|000031b0| 6e 67 27 20 6f 6e 65 20 | 6f 66 20 74 68 65 20 7b |ng' one |of the {|
|000031c0| 5c 74 74 66 61 6d 69 6c | 79 0a 25 20 58 7d 20 63 |\ttfamil|y.% X} c|
|000031d0| 6f 6c 75 6d 6e 73 2c 20 | 61 6e 64 20 73 6f 20 74 |olumns, |and so t|
|000031e0| 68 65 72 65 20 69 73 20 | 6f 6e 65 20 6c 65 73 73 |here is |one less|
|000031f0| 20 7b 5c 74 74 66 61 6d | 69 6c 79 20 58 7d 20 63 | {\ttfam|ily X} c|
|00003200| 6f 6c 75 6d 6e 20 61 66 | 66 65 63 74 69 6e 67 0a |olumn af|fecting.|
|00003210| 25 20 74 68 65 20 77 69 | 64 74 68 20 6f 66 20 74 |% the wi|dth of t|
|00003220| 68 65 20 74 61 62 6c 65 | 2e 20 53 6f 20 77 65 20 |he table|. So we |
|00003230| 72 65 64 75 63 65 20 62 | 79 20 31 20 74 68 65 20 |reduce b|y 1 the |
|00003240| 6e 75 6d 62 65 72 20 6f | 66 20 58 20 63 6f 6c 75 |number o|f X colu|
|00003250| 6d 6e 73 20 61 6e 64 0a | 25 20 72 65 70 65 61 74 |mns and.|% repeat|
|00003260| 20 74 68 65 20 70 72 6f | 63 65 73 73 2e 0a 25 0a | the pro|cess..%.|
|00003270| 25 20 5c 62 65 67 69 6e | 7b 6d 61 63 72 6f 7d 7b |% \begin|{macro}{|
|00003280| 5c 54 58 40 65 6e 64 74 | 61 62 75 6c 61 72 78 7d |\TX@endt|abularx}|
|00003290| 0a 25 20 41 6c 74 68 6f | 75 67 68 20 49 20 68 61 |.% Altho|ugh I ha|
|000032a0| 76 65 20 74 72 69 65 64 | 20 74 6f 20 6d 61 6b 65 |ve tried| to make|
|000032b0| 20 7b 5c 74 74 66 61 6d | 69 6c 79 20 74 61 62 75 | {\ttfam|ily tabu|
|000032c0| 6c 61 72 78 7d 20 6c 6f | 6f 6b 20 6c 69 6b 65 20 |larx} lo|ok like |
|000032d0| 61 6e 0a 25 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |an.% env|ironment|
|000032e0| 2c 20 69 74 20 69 73 20 | 69 6e 20 66 61 63 74 20 |, it is |in fact |
|000032f0| 61 20 63 6f 6d 6d 61 6e | 64 2c 20 61 6c 6c 20 74 |a comman|d, all t|
|00003300| 68 65 20 77 6f 72 6b 20 | 69 73 20 64 6f 6e 65 20 |he work |is done |
|00003310| 62 79 20 74 68 69 73 0a | 25 20 6d 61 63 72 6f 2e |by this.|% macro.|
|00003320| 0a 25 20 20 20 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |.% \b|egin{mac|
|00003330| 72 6f 63 6f 64 65 7d 0a | 5c 64 65 66 5c 54 58 40 |rocode}.|\def\TX@|
|00003340| 65 6e 64 74 61 62 75 6c | 61 72 78 7b 25 0a 25 20 |endtabul|arx{%.% |
|00003350| 20 20 20 5c 65 6e 64 7b | 6d 61 63 72 6f 63 6f 64 | \end{|macrocod|
|00003360| 65 7d 0a 25 20 44 65 66 | 69 6e 65 20 74 68 65 20 |e}.% Def|ine the |
|00003370| 7b 5c 74 74 66 61 6d 69 | 6c 79 20 58 7d 20 63 6f |{\ttfami|ly X} co|
|00003380| 6c 75 6d 6e 2c 20 77 69 | 74 68 20 61 6e 20 69 6e |lumn, wi|th an in|
|00003390| 74 65 72 6e 61 6c 20 76 | 65 72 73 69 6f 6e 20 6f |ternal v|ersion o|
|000033a0| 66 20 74 68 65 0a 25 20 | 22 5c 6e 65 77 63 6f 6c |f the.% |"\newcol|
|000033b0| 75 6d 6e 74 79 70 65 22 | 20 63 6f 6d 6d 61 6e 64 |umntype"| command|
|000033c0| 2e 20 54 68 65 20 22 5c | 65 78 70 61 6e 64 61 66 |. The "\|expandaf|
|000033d0| 74 65 72 22 20 63 6f 6d | 6d 61 6e 64 73 20 65 6e |ter" com|mands en|
|000033e0| 61 62 6c 65 0a 25 20 22 | 5c 4e 43 40 6e 65 77 63 |able.% "|\NC@newc|
|000033f0| 6f 6c 22 20 20 74 6f 20 | 67 65 74 20 74 68 65 20 |ol" to |get the |
|00003400| 7b 5c 65 6d 20 65 78 70 | 61 6e 73 69 6f 6e 7d 20 |{\em exp|ansion} |
|00003410| 6f 66 5c 5c 0a 25 20 22 | 5c 74 61 62 75 6c 61 72 |of\\.% "|\tabular|
|00003420| 78 63 6f 6c 75 6d 6e 7b | 5c 54 58 40 63 6f 6c 40 |xcolumn{|\TX@col@|
|00003430| 77 69 64 74 68 7d 22 20 | 61 73 20 69 74 73 0a 25 |width}" |as its.%|
|00003440| 20 61 72 67 75 6d 65 6e | 74 2e 20 54 68 69 73 20 | argumen|t. This |
|00003450| 77 69 6c 6c 20 62 65 20 | 74 68 65 20 64 65 66 69 |will be |the defi|
|00003460| 6e 69 74 69 6f 6e 20 6f | 66 20 61 6e 20 7b 5c 74 |nition o|f an {\t|
|00003470| 74 66 61 6d 69 6c 79 20 | 58 7d 20 63 6f 6c 75 6d |tfamily |X} colum|
|00003480| 6e 2c 20 61 73 0a 25 20 | 64 69 73 63 75 73 73 65 |n, as.% |discusse|
|00003490| 64 20 69 6e 20 73 65 63 | 74 69 6f 6e 20 34 2e 0a |d in sec|tion 4..|
|000034a0| 25 20 20 20 20 5c 62 65 | 67 69 6e 7b 6d 61 63 72 |% \be|gin{macr|
|000034b0| 6f 63 6f 64 65 7d 0a 20 | 20 5c 65 78 70 61 6e 64 |ocode}. | \expand|
|000034c0| 61 66 74 65 72 5c 54 58 | 40 6e 65 77 63 6f 6c 5c |after\TX|@newcol\|
|000034d0| 65 78 70 61 6e 64 61 66 | 74 65 72 7b 5c 74 61 62 |expandaf|ter{\tab|
|000034e0| 75 6c 61 72 78 63 6f 6c | 75 6d 6e 7b 5c 54 58 40 |ularxcol|umn{\TX@|
|000034f0| 63 6f 6c 40 77 69 64 74 | 68 7d 7d 25 0a 25 20 20 |col@widt|h}}%.% |
|00003500| 20 20 5c 65 6e 64 7b 6d | 61 63 72 6f 63 6f 64 65 | \end{m|acrocode|
|00003510| 7d 0a 25 20 49 6e 69 74 | 69 61 6c 69 73 65 20 74 |}.% Init|ialise t|
|00003520| 68 65 20 63 6f 6c 75 6d | 6e 20 77 69 64 74 68 2c |he colum|n width,|
|00003530| 20 61 6e 64 20 74 68 65 | 20 6e 75 6d 62 65 72 20 | and the| number |
|00003540| 6f 66 20 7b 5c 74 74 66 | 61 6d 69 6c 79 20 58 7d |of {\ttf|amily X}|
|00003550| 20 63 6f 6c 75 6d 6e 73 | 2e 0a 25 20 54 68 65 20 | columns|..% The |
|00003560| 6e 75 6d 62 65 72 20 6f | 66 20 7b 5c 74 74 66 61 |number o|f {\ttfa|
|00003570| 6d 69 6c 79 20 58 7d 20 | 63 6f 6c 75 6d 6e 73 20 |mily X} |columns |
|00003580| 69 73 20 73 65 74 20 74 | 6f 20 6f 6e 65 2c 20 77 |is set t|o one, w|
|00003590| 68 69 63 68 20 6d 65 61 | 6e 73 20 74 68 61 74 0a |hich mea|ns that.|
|000035a0| 25 20 74 68 65 20 69 6e | 69 74 69 61 6c 20 63 6f |% the in|itial co|
|000035b0| 75 6e 74 20 77 69 6c 6c | 20 62 65 20 6f 6e 65 20 |unt will| be one |
|000035c0| 74 6f 6f 20 68 69 67 68 | 2c 20 62 75 74 20 74 68 |too high|, but th|
|000035d0| 69 73 20 76 61 6c 75 65 | 20 69 73 20 64 65 63 72 |is value| is decr|
|000035e0| 65 6d 65 6e 74 65 64 0a | 25 20 62 65 66 6f 72 65 |emented.|% before|
|000035f0| 20 69 74 20 69 73 20 75 | 73 65 64 20 69 6e 20 74 | it is u|sed in t|
|00003600| 68 65 20 6d 61 69 6e 20 | 6c 6f 6f 70 2e 0a 25 0a |he main |loop..%.|
|00003610| 25 20 53 69 6e 63 65 20 | 76 31 2e 30 32 2c 20 73 |% Since |v1.02, s|
|00003620| 77 69 74 63 68 20 74 68 | 65 20 64 65 66 69 6e 69 |witch th|e defini|
|00003630| 74 69 6f 6e 20 6f 66 20 | 22 5c 76 65 72 62 22 2e |tion of |"\verb".|
|00003640| 0a 25 20 20 20 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |.% \b|egin{mac|
|00003650| 72 6f 63 6f 64 65 7d 0a | 20 20 5c 6c 65 74 5c 76 |rocode}.| \let\v|
|00003660| 65 72 62 5c 54 58 40 76 | 65 72 62 0a 25 20 20 20 |erb\TX@v|erb.% |
|00003670| 20 5c 65 6e 64 7b 6d 61 | 63 72 6f 63 6f 64 65 7d | \end{ma|crocode}|
|00003680| 0a 25 20 53 69 6e 63 65 | 20 76 31 2e 30 35 2c 20 |.% Since| v1.05, |
|00003690| 73 61 76 65 20 74 68 65 | 20 76 61 6c 75 65 73 20 |save the| values |
|000036a0| 6f 66 20 61 6c 6c 20 5c | 4c 61 54 65 58 5c 20 63 |of all \|LaTeX\ c|
|000036b0| 6f 75 6e 74 65 72 73 2c | 20 74 68 65 20 6c 69 73 |ounters,| the lis|
|000036c0| 74 0a 25 20 22 5c 63 6c | 40 40 63 6b 70 74 22 20 |t.% "\cl|@@ckpt" |
|000036d0| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 6e 61 6d |contains| the nam|
|000036e0| 65 73 20 6f 66 20 61 6c | 6c 20 74 68 65 20 5c 4c |es of al|l the \L|
|000036f0| 61 54 65 58 5c 20 63 6f | 75 6e 74 65 72 73 20 74 |aTeX\ co|unters t|
|00003700| 68 61 74 20 68 61 76 65 | 0a 25 20 62 65 65 6e 20 |hat have|.% been |
|00003710| 64 65 66 69 6e 65 64 20 | 73 6f 20 66 61 72 2e 20 |defined |so far. |
|00003720| 57 65 20 65 78 70 61 6e | 64 20 22 5c 73 65 74 63 |We expan|d "\setc|
|00003730| 6f 75 6e 74 65 72 22 20 | 61 74 20 74 68 69 73 20 |ounter" |at this |
|00003740| 70 6f 69 6e 74 2c 20 61 | 73 20 69 74 0a 25 20 72 |point, a|s it.% r|
|00003750| 65 73 75 6c 74 73 20 69 | 6e 20 66 65 77 65 72 20 |esults i|n fewer |
|00003760| 74 6f 6b 65 6e 73 20 62 | 65 69 6e 67 20 73 74 6f |tokens b|eing sto|
|00003770| 72 65 64 20 69 6e 20 22 | 5c 54 58 40 63 6b 70 74 |red in "|\TX@ckpt|
|00003780| 22 2c 20 62 75 74 20 74 | 68 65 20 61 63 74 75 61 |", but t|he actua|
|00003790| 6c 0a 25 20 72 65 73 65 | 74 74 69 6e 67 20 6f 66 |l.% rese|tting of|
|000037a0| 20 74 68 65 20 63 6f 75 | 6e 74 65 72 73 20 6f 63 | the cou|nters oc|
|000037b0| 63 75 72 73 20 77 68 65 | 6e 20 22 5c 54 58 40 63 |curs whe|n "\TX@c|
|000037c0| 6b 70 74 22 20 69 73 20 | 65 78 70 61 6e 64 65 64 |kpt" is |expanded|
|000037d0| 20 61 66 74 65 72 0a 25 | 20 65 61 63 68 20 74 72 | after.%| each tr|
|000037e0| 69 61 6c 20 72 75 6e 2e | 0a 25 20 41 63 74 75 61 |ial run.|.% Actua|
|000037f0| 6c 6c 79 20 73 69 6e 63 | 65 20 76 31 2e 30 37 2c |lly sinc|e v1.07,|
|00003800| 20 75 73 65 20 73 6f 6d | 65 74 68 69 6e 67 20 65 | use som|ething e|
|00003810| 71 75 69 76 61 6c 65 6e | 74 20 74 6f 20 74 68 65 |quivalen|t to the|
|00003820| 20 65 78 70 61 6e 73 69 | 6f 6e 20 6f 66 20 74 68 | expansi|on of th|
|00003830| 65 0a 25 20 6f 72 69 67 | 69 6e 61 6c 20 64 65 66 |e.% orig|inal def|
|00003840| 69 6e 69 74 69 6f 6e 20 | 6f 66 22 5c 73 65 74 63 |inition |of"\setc|
|00003850| 6f 75 6e 74 65 72 22 2c | 20 73 6f 20 74 68 61 74 |ounter",| so that|
|00003860| 20 22 74 61 62 75 6c 61 | 72 78 22 20 77 6f 72 6b | "tabula|rx" work|
|00003870| 73 20 69 6e 0a 25 20 63 | 6f 6e 6a 75 6e 63 74 69 |s in.% c|onjuncti|
|00003880| 6f 6e 20 77 69 74 68 20 | 22 63 61 6c 63 2e 73 74 |on with |"calc.st|
|00003890| 79 22 2e 0a 25 20 20 20 | 20 5c 62 65 67 69 6e 7b |y"..% | \begin{|
|000038a0| 6d 61 63 72 6f 63 6f 64 | 65 7d 0a 20 20 5c 64 65 |macrocod|e}. \de|
|000038b0| 66 5c 40 65 6c 74 23 23 | 31 7b 5c 67 6c 6f 62 61 |f\@elt##|1{\globa|
|000038c0| 6c 5c 76 61 6c 75 65 7b | 23 23 31 7d 5c 74 68 65 |l\value{|##1}\the|
|000038d0| 5c 76 61 6c 75 65 7b 23 | 23 31 7d 5c 72 65 6c 61 |\value{#|#1}\rela|
|000038e0| 78 7d 25 0a 20 20 5c 65 | 64 65 66 5c 54 58 40 63 |x}%. \e|def\TX@c|
|000038f0| 6b 70 74 7b 5c 63 6c 40 | 40 63 6b 70 74 7d 25 0a |kpt{\cl@|@ckpt}%.|
|00003900| 20 20 5c 6c 65 74 5c 40 | 65 6c 74 5c 72 65 6c 61 | \let\@|elt\rela|
|00003910| 78 0a 20 20 5c 54 58 40 | 6f 6c 64 40 74 61 62 6c |x. \TX@|old@tabl|
|00003920| 65 3d 5c 6d 61 78 64 69 | 6d 65 6e 0a 20 20 5c 54 |e=\maxdi|men. \T|
|00003930| 58 40 63 6f 6c 40 77 69 | 64 74 68 3d 5c 54 58 40 |X@col@wi|dth=\TX@|
|00003940| 74 61 72 67 65 74 0a 20 | 20 5c 67 6c 6f 62 61 6c |target. | \global|
|00003950| 5c 54 58 40 63 6f 6c 73 | 3d 5c 40 6e 65 0a 25 20 |\TX@cols|=\@ne.% |
|00003960| 20 20 20 5c 65 6e 64 7b | 6d 61 63 72 6f 63 6f 64 | \end{|macrocod|
|00003970| 65 7d 0a 25 20 54 79 70 | 65 6f 75 74 20 73 6f 6d |e}.% Typ|eout som|
|00003980| 65 20 68 65 61 64 69 6e | 67 73 20 28 75 6e 6c 65 |e headin|gs (unle|
|00003990| 73 73 20 74 68 69 73 20 | 69 73 20 64 69 73 61 62 |ss this |is disab|
|000039a0| 6c 65 64 29 2e 0a 25 20 | 20 20 20 5c 62 65 67 69 |led)..% | \begi|
|000039b0| 6e 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 20 20 5c |n{macroc|ode}. \|
|000039c0| 54 58 40 74 79 70 65 6f | 75 74 40 0a 20 20 20 20 |TX@typeo|ut@. |
|000039d0| 7b 5c 40 73 70 61 63 65 | 73 20 54 61 62 6c 65 20 |{\@space|s Table |
|000039e0| 57 69 64 74 68 5c 40 73 | 70 61 63 65 73 20 43 6f |Width\@s|paces Co|
|000039f0| 6c 75 6d 6e 20 57 69 64 | 74 68 5c 40 73 70 61 63 |lumn Wid|th\@spac|
|00003a00| 65 73 20 58 20 43 6f 6c | 75 6d 6e 73 7d 25 0a 25 |es X Col|umns}%.%|
|00003a10| 20 20 20 20 5c 65 6e 64 | 7b 6d 61 63 72 6f 63 6f | \end|{macroco|
|00003a20| 64 65 7d 25 0a 25 20 46 | 69 72 73 74 20 61 74 74 |de}%.% F|irst att|
|00003a30| 65 6d 70 74 2e 20 4d 6f | 64 69 66 79 20 74 68 65 |empt. Mo|dify the|
|00003a40| 20 7b 5c 74 74 66 61 6d | 69 6c 79 20 58 7d 20 64 | {\ttfam|ily X} d|
|00003a50| 65 66 69 6e 69 74 69 6f | 6e 20 74 6f 20 63 6f 75 |efinitio|n to cou|
|00003a60| 6e 74 20 7b 5c 74 74 66 | 61 6d 69 6c 79 0a 25 20 |nt {\ttf|amily.% |
|00003a70| 58 7d 20 63 6f 6c 75 6d | 6e 73 2e 0a 25 20 20 20 |X} colum|ns..% |
|00003a80| 20 5c 62 65 67 69 6e 7b | 6d 61 63 72 6f 63 6f 64 | \begin{|macrocod|
|00003a90| 65 7d 0a 20 20 5c 54 58 | 40 74 72 69 61 6c 7b 5c |e}. \TX|@trial{\|
|00003aa0| 64 65 66 5c 4e 43 40 72 | 65 77 72 69 74 65 40 58 |def\NC@r|ewrite@X|
|00003ab0| 7b 25 0a 20 20 20 20 20 | 20 20 20 20 20 5c 67 6c |{%. | \gl|
|00003ac0| 6f 62 61 6c 5c 61 64 76 | 61 6e 63 65 5c 54 58 40 |obal\adv|ance\TX@|
|00003ad0| 63 6f 6c 73 5c 40 6e 65 | 5c 4e 43 40 66 69 6e 64 |cols\@ne|\NC@find|
|00003ae0| 20 70 7b 5c 54 58 40 63 | 6f 6c 40 77 69 64 74 68 | p{\TX@c|ol@width|
|00003af0| 7d 7d 7d 25 0a 25 20 20 | 20 20 5c 65 6e 64 7b 6d |}}}%.% | \end{m|
|00003b00| 61 63 72 6f 63 6f 64 65 | 7d 0a 25 20 52 65 70 65 |acrocode|}.% Repe|
|00003b10| 61 74 65 64 6c 79 20 64 | 65 63 72 65 61 73 65 20 |atedly d|ecrease |
|00003b20| 63 6f 6c 75 6d 6e 20 77 | 69 64 74 68 20 75 6e 74 |column w|idth unt|
|00003b30| 69 6c 20 74 61 62 6c 65 | 20 69 73 20 74 68 65 20 |il table| is the |
|00003b40| 63 6f 72 72 65 63 74 20 | 77 69 64 74 68 2c 0a 25 |correct |width,.%|
|00003b50| 20 6f 72 20 73 74 6f 70 | 73 20 73 68 72 69 6e 6b | or stop|s shrink|
|00003b60| 69 6e 67 2c 20 6f 72 20 | 74 68 65 20 63 6f 6c 75 |ing, or |the colu|
|00003b70| 6d 6e 73 20 62 65 63 6f | 6d 65 20 74 77 6f 20 6e |mns beco|me two n|
|00003b80| 61 72 72 6f 77 2e 0a 25 | 20 49 66 20 74 68 65 72 |arrow..%| If ther|
|00003b90| 65 20 61 72 65 20 6e 6f | 20 6d 75 6c 74 69 63 6f |e are no| multico|
|00003ba0| 6c 75 6d 6e 20 65 6e 74 | 72 69 65 73 2c 20 74 68 |lumn ent|ries, th|
|00003bb0| 69 73 20 77 69 6c 6c 20 | 6f 6e 6c 79 20 74 61 6b |is will |only tak|
|00003bc0| 65 20 6f 6e 65 20 61 74 | 74 65 6d 70 74 2e 0a 25 |e one at|tempt..%|
|00003bd0| 20 20 20 20 5c 62 65 67 | 69 6e 7b 6d 61 63 72 6f | \beg|in{macro|
|00003be0| 63 6f 64 65 7d 0a 20 20 | 5c 6c 6f 6f 70 0a 20 20 |code}. |\loop. |
|00003bf0| 20 20 5c 54 58 40 61 72 | 69 74 68 0a 20 20 20 20 | \TX@ar|ith. |
|00003c00| 5c 69 66 54 58 40 0a 20 | 20 20 20 5c 54 58 40 74 |\ifTX@. | \TX@t|
|00003c10| 72 69 61 6c 7b 7d 25 0a | 20 20 5c 72 65 70 65 61 |rial{}%.| \repea|
|00003c20| 74 0a 25 20 20 20 20 5c | 65 6e 64 7b 6d 61 63 72 |t.% \|end{macr|
|00003c30| 6f 63 6f 64 65 7d 0a 25 | 20 4f 6e 65 20 6c 61 73 |ocode}.%| One las|
|00003c40| 74 20 74 69 6d 65 2c 20 | 77 69 74 68 20 77 61 72 |t time, |with war|
|00003c50| 6e 69 6e 67 73 20 62 61 | 63 6b 20 6f 6e 20 28 73 |nings ba|ck on (s|
|00003c60| 65 65 20 61 70 70 65 6e | 64 69 78 20 44 29 0a 25 |ee appen|dix D).%|
|00003c70| 20 75 73 65 20 7b 5c 74 | 74 66 61 6d 69 6c 79 20 | use {\t|tfamily |
|00003c80| 74 61 62 75 6c 61 72 2a | 7d 20 74 6f 20 70 75 74 |tabular*|} to put|
|00003c90| 20 69 74 20 69 6e 20 61 | 20 62 6f 78 20 6f 66 20 | it in a| box of |
|00003ca0| 74 68 65 20 72 69 67 68 | 74 20 73 69 7a 65 2c 20 |the righ|t size, |
|00003cb0| 69 6e 20 63 61 73 65 0a | 25 20 74 68 65 20 61 6c |in case.|% the al|
|00003cc0| 67 6f 72 69 74 68 6d 20 | 66 61 69 6c 65 64 20 74 |gorithm |failed t|
|00003cd0| 6f 20 66 69 6e 64 20 74 | 68 65 20 63 6f 72 72 65 |o find t|he corre|
|00003ce0| 63 74 20 73 69 7a 65 2e | 0a 25 0a 25 20 53 69 6e |ct size.|.%.% Sin|
|00003cf0| 63 65 20 76 31 2e 30 34 | 2c 20 6c 6f 63 61 6c 6c |ce v1.04|, locall|
|00003d00| 79 20 6d 61 6b 65 20 22 | 5c 66 6f 6f 74 6e 6f 74 |y make "|\footnot|
|00003d10| 65 74 65 78 74 22 20 73 | 61 76 65 20 69 74 73 20 |etext" s|ave its |
|00003d20| 61 72 67 75 6d 65 6e 74 | 20 69 6e 20 61 20 74 6f |argument| in a to|
|00003d30| 6b 65 6e 0a 25 20 72 65 | 67 69 73 74 65 72 2e 0a |ken.% re|gister..|
|00003d40| 25 20 53 69 6e 63 65 20 | 76 31 2e 30 36 2c 20 22 |% Since |v1.06, "|
|00003d50| 5c 74 6f 6b 73 40 22 20 | 63 6f 6e 74 61 69 6e 73 |\toks@" |contains|
|00003d60| 20 74 68 65 20 70 72 65 | 61 6d 62 6c 65 20 73 70 | the pre|amble sp|
|00003d70| 65 63 69 66 69 63 61 74 | 69 6f 6e 2c 0a 25 20 61 |ecificat|ion,.% a|
|00003d80| 6e 64 20 70 6f 73 73 69 | 62 6c 65 20 6f 70 74 69 |nd possi|ble opti|
|00003d90| 6f 6e 61 6c 20 61 72 67 | 75 6d 65 6e 74 2c 20 61 |onal arg|ument, a|
|00003da0| 73 20 77 65 6c 6c 20 61 | 73 20 74 68 65 20 74 61 |s well a|s the ta|
|00003db0| 62 6c 65 20 62 6f 64 79 | 2e 0a 25 20 20 20 20 5c |ble body|..% \|
|00003dc0| 62 65 67 69 6e 7b 6d 61 | 63 72 6f 63 6f 64 65 7d |begin{ma|crocode}|
|00003dd0| 0a 20 20 7b 5c 6c 65 74 | 5c 40 66 6f 6f 74 6e 6f |. {\let|\@footno|
|00003de0| 74 65 74 65 78 74 5c 54 | 58 40 66 74 6e 74 65 78 |tetext\T|X@ftntex|
|00003df0| 74 5c 6c 65 74 5c 40 78 | 66 6f 6f 74 6e 6f 74 65 |t\let\@x|footnote|
|00003e00| 6e 65 78 74 5c 54 58 40 | 78 66 74 6e 74 65 78 74 |next\TX@|xftntext|
|00003e10| 0a 20 20 20 20 5c 63 73 | 6e 61 6d 65 20 74 61 62 |. \cs|name tab|
|00003e20| 75 6c 61 72 2a 5c 65 78 | 70 61 6e 64 61 66 74 65 |ular*\ex|pandafte|
|00003e30| 72 5c 65 6e 64 63 73 6e | 61 6d 65 5c 65 78 70 61 |r\endcsn|ame\expa|
|00003e40| 6e 64 61 66 74 65 72 5c | 54 58 40 74 61 72 67 65 |ndafter\|TX@targe|
|00003e50| 74 0a 20 20 20 20 20 20 | 5c 74 68 65 5c 74 6f 6b |t. |\the\tok|
|00003e60| 73 40 0a 20 20 20 20 5c | 63 73 6e 61 6d 65 20 65 |s@. \|csname e|
|00003e70| 6e 64 74 61 62 75 6c 61 | 72 2a 5c 65 6e 64 63 73 |ndtabula|r*\endcs|
|00003e80| 6e 61 6d 65 7d 25 0a 25 | 20 20 20 20 5c 65 6e 64 |name}%.%| \end|
|00003e90| 7b 6d 61 63 72 6f 63 6f | 64 65 7d 0a 25 20 4e 6f |{macroco|de}.% No|
|00003ea0| 77 20 74 68 65 20 61 6c | 69 67 6e 6d 65 6e 74 20 |w the al|ignment |
|00003eb0| 69 73 20 66 69 6e 69 73 | 68 65 64 2c 20 61 6e 64 |is finis|hed, and|
|00003ec0| 20 74 68 65 20 22 7d 22 | 20 68 61 73 20 72 65 73 | the "}"| has res|
|00003ed0| 74 6f 72 65 64 20 74 68 | 65 20 6f 72 69 67 69 6e |tored th|e origin|
|00003ee0| 61 6c 0a 25 20 6d 65 61 | 6e 69 6e 67 20 6f 66 20 |al.% mea|ning of |
|00003ef0| 22 5c 40 66 6f 6f 74 6e | 6f 74 65 74 65 78 74 22 |"\@footn|otetext"|
|00003f00| 20 65 78 70 61 6e 64 20 | 74 68 65 20 72 65 67 69 | expand |the regi|
|00003f10| 73 74 65 72 20 22 5c 54 | 58 40 66 74 6e 22 20 77 |ster "\T|X@ftn" w|
|00003f20| 68 69 63 68 20 77 69 6c | 6c 0a 25 20 65 78 65 63 |hich wil|l.% exec|
|00003f30| 75 74 65 20 61 20 73 65 | 72 69 65 73 20 6f 66 5c |ute a se|ries of\|
|00003f40| 5c 0a 25 20 22 5c 66 6f | 6f 74 6e 6f 74 65 74 65 |\.% "\fo|otnotete|
|00003f50| 78 74 5b 22 5c 6d 65 74 | 61 7b 6e 75 6d 7d 22 5d |xt["\met|a{num}"]|
|00003f60| 7b 22 5c 6d 65 74 61 7b | 6e 6f 74 65 7d 22 7d 22 |{"\meta{|note}"}"|
|00003f70| 5c 5c 0a 25 20 63 6f 6d | 6d 61 6e 64 73 2e 20 57 |\\.% com|mands. W|
|00003f80| 65 20 6e 65 65 64 20 74 | 6f 20 62 65 20 63 61 72 |e need t|o be car|
|00003f90| 65 66 75 6c 20 61 62 6f | 75 74 20 63 6c 65 61 72 |eful abo|ut clear|
|00003fa0| 69 6e 67 20 74 68 65 20 | 72 65 67 69 73 74 65 72 |ing the |register|
|00003fb0| 20 61 73 20 77 65 20 6d | 61 79 0a 25 20 62 65 20 | as we m|ay.% be |
|00003fc0| 69 6e 73 69 64 65 20 61 | 20 6e 65 73 74 65 64 20 |inside a| nested |
|00003fd0| 7b 5c 74 74 66 61 6d 69 | 6c 79 20 74 61 62 75 6c |{\ttfami|ly tabul|
|00003fe0| 61 72 78 7d 2e 0a 25 20 | 20 20 20 5c 62 65 67 69 |arx}..% | \begi|
|00003ff0| 6e 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 20 20 5c |n{macroc|ode}. \|
|00004000| 67 6c 6f 62 61 6c 5c 54 | 58 40 66 74 6e 5c 65 78 |global\T|X@ftn\ex|
|00004010| 70 61 6e 64 61 66 74 65 | 72 7b 5c 65 78 70 61 6e |pandafte|r{\expan|
|00004020| 64 61 66 74 65 72 7d 5c | 74 68 65 5c 54 58 40 66 |dafter}\|the\TX@f|
|00004030| 74 6e 0a 25 20 20 20 20 | 5c 65 6e 64 7b 6d 61 63 |tn.% |\end{mac|
|00004040| 72 6f 63 6f 64 65 7d 0a | 25 20 4e 6f 77 20 66 69 |rocode}.|% Now fi|
|00004050| 6e 69 73 68 20 6f 66 66 | 20 74 68 65 20 7b 5c 74 |nish off| the {\t|
|00004060| 74 66 61 6d 69 6c 79 20 | 74 61 62 75 6c 61 72 78 |tfamily |tabularx|
|00004070| 7d 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 2e 20 4e |} enviro|nment. N|
|00004080| 6f 74 65 20 74 68 61 74 | 20 77 65 20 6e 65 65 64 |ote that| we need|
|00004090| 0a 25 20 22 5c 65 6e 64 | 7b 74 61 62 75 6c 61 72 |.% "\end|{tabular|
|000040a0| 78 7d 22 20 68 65 72 65 | 20 61 73 20 74 68 65 20 |x}" here| as the |
|000040b0| 22 5c 65 6e 64 7b 74 61 | 62 75 6c 61 72 78 7d 22 |"\end{ta|bularx}"|
|000040c0| 20 69 6e 20 74 68 65 20 | 75 73 65 72 27 73 0a 25 | in the |user's.%|
|000040d0| 20 66 69 6c 65 20 69 73 | 20 6e 65 76 65 72 20 65 | file is| never e|
|000040e0| 78 70 61 6e 64 65 64 2e | 0a 25 20 57 65 20 61 6c |xpanded.|.% We al|
|000040f0| 73 6f 20 6e 65 65 64 20 | 74 6f 20 66 69 6e 69 73 |so need |to finis|
|00004100| 68 20 6f 66 66 20 74 68 | 65 20 67 72 6f 75 70 20 |h off th|e group |
|00004110| 73 74 61 72 74 65 64 20 | 62 79 20 22 7b 5c 69 66 |started |by "{\if|
|00004120| 6e 75 6d 30 3d 60 7d 5c | 66 69 22 20 69 6e 0a 25 |num0=`}\|fi" in.%|
|00004130| 20 74 68 65 20 6d 61 63 | 72 6f 20 22 5c 74 61 62 | the mac|ro "\tab|
|00004140| 75 6c 61 72 78 22 2e 0a | 25 20 20 20 20 5c 62 65 |ularx"..|% \be|
|00004150| 67 69 6e 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 20 |gin{macr|ocode}. |
|00004160| 20 5c 69 66 6e 75 6d 30 | 3d 60 7b 5c 66 69 7d 25 | \ifnum0|=`{\fi}%|
|00004170| 0a 20 20 5c 65 6e 64 7b | 74 61 62 75 6c 61 72 78 |. \end{|tabularx|
|00004180| 7d 7d 0a 25 20 20 20 20 | 5c 65 6e 64 7b 6d 61 63 |}}.% |\end{mac|
|00004190| 72 6f 63 6f 64 65 7d 0a | 25 20 5c 65 6e 64 7b 6d |rocode}.|% \end{m|
|000041a0| 61 63 72 6f 7d 0a 25 0a | 25 0a 25 20 5c 62 65 67 |acro}.%.|%.% \beg|
|000041b0| 69 6e 7b 6d 61 63 72 6f | 7d 7b 5c 54 58 40 61 72 |in{macro|}{\TX@ar|
|000041c0| 69 74 68 7d 0a 25 20 43 | 61 6c 63 75 6c 61 74 65 |ith}.% C|alculate|
|000041d0| 20 74 68 65 20 63 6f 6c | 75 6d 6e 20 77 69 64 74 | the col|umn widt|
|000041e0| 68 20 66 6f 72 20 74 68 | 65 20 6e 65 78 74 20 74 |h for th|e next t|
|000041f0| 72 79 2c 20 73 65 74 74 | 69 6e 67 20 74 68 65 20 |ry, sett|ing the |
|00004200| 66 6c 61 67 0a 25 20 22 | 5c 69 66 54 58 40 22 20 |flag.% "|\ifTX@" |
|00004210| 74 6f 20 66 61 6c 73 65 | 20 69 66 20 74 68 65 20 |to false| if the |
|00004220| 6c 6f 6f 70 20 73 68 6f | 75 6c 64 20 62 65 20 61 |loop sho|uld be a|
|00004230| 62 6f 72 74 65 64 2e 0a | 25 20 20 20 20 5c 62 65 |borted..|% \be|
|00004240| 67 69 6e 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 5c |gin{macr|ocode}.\|
|00004250| 64 65 66 5c 54 58 40 61 | 72 69 74 68 7b 25 0a 20 |def\TX@a|rith{%. |
|00004260| 20 5c 54 58 40 66 61 6c | 73 65 0a 20 20 5c 69 66 | \TX@fal|se. \if|
|00004270| 64 69 6d 5c 54 58 40 6f | 6c 64 40 74 61 62 6c 65 |dim\TX@o|ld@table|
|00004280| 3d 5c 77 64 5c 40 74 65 | 6d 70 62 6f 78 61 0a 25 |=\wd\@te|mpboxa.%|
|00004290| 20 20 20 20 5c 65 6e 64 | 7b 6d 61 63 72 6f 63 6f | \end|{macroco|
|000042a0| 64 65 7d 0a 25 20 49 66 | 20 77 65 20 68 61 76 65 |de}.% If| we have|
|000042b0| 20 72 65 64 75 63 65 64 | 20 74 68 65 20 63 6f 6c | reduced| the col|
|000042c0| 75 6d 6e 20 77 69 64 74 | 68 2c 20 62 75 74 20 74 |umn widt|h, but t|
|000042d0| 68 65 20 74 61 62 6c 65 | 20 77 69 64 74 68 20 68 |he table| width h|
|000042e0| 61 73 20 6e 6f 74 0a 25 | 20 63 68 61 6e 67 65 64 |as not.%| changed|
|000042f0| 2c 20 77 65 20 73 74 6f | 70 20 74 68 65 20 6c 6f |, we sto|p the lo|
|00004300| 6f 70 2c 20 61 6e 64 20 | 6f 75 74 70 75 74 20 74 |op, and |output t|
|00004310| 68 65 20 74 61 62 6c 65 | 20 28 77 68 69 63 68 20 |he table| (which |
|00004320| 77 69 6c 6c 20 63 61 75 | 73 65 20 61 6e 0a 25 20 |will cau|se an.% |
|00004330| 6f 76 65 72 2d 66 75 6c | 6c 20 61 6c 69 67 6e 6d |over-ful|l alignm|
|00004340| 65 6e 74 29 20 77 69 74 | 68 20 74 68 65 20 70 72 |ent) wit|h the pr|
|00004350| 65 76 69 6f 75 73 20 76 | 61 6c 75 65 20 6f 66 20 |evious v|alue of |
|00004360| 22 5c 54 58 40 63 6f 6c | 40 77 69 64 74 68 22 2e |"\TX@col|@width".|
|00004370| 0a 25 20 20 20 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |.% \b|egin{mac|
|00004380| 72 6f 63 6f 64 65 7d 0a | 20 20 20 20 5c 54 58 40 |rocode}.| \TX@|
|00004390| 63 6f 6c 40 77 69 64 74 | 68 3d 5c 54 58 40 6f 6c |col@widt|h=\TX@ol|
|000043a0| 64 40 63 6f 6c 0a 20 20 | 20 20 5c 54 58 40 74 79 |d@col. | \TX@ty|
|000043b0| 70 65 6f 75 74 40 7b 52 | 65 61 63 68 65 64 20 6d |peout@{R|eached m|
|000043c0| 69 6e 69 6d 75 6d 20 77 | 69 64 74 68 2c 20 62 61 |inimum w|idth, ba|
|000043d0| 63 6b 69 6e 67 20 75 70 | 2e 7d 25 0a 20 20 5c 65 |cking up|.}%. \e|
|000043e0| 6c 73 65 0a 25 20 20 20 | 20 5c 65 6e 64 7b 6d 61 |lse.% | \end{ma|
|000043f0| 63 72 6f 63 6f 64 65 7d | 0a 25 20 4f 74 68 65 72 |crocode}|.% Other|
|00004400| 77 69 73 65 20 63 61 6c | 63 75 6c 61 74 65 20 74 |wise cal|culate t|
|00004410| 68 65 20 61 6d 6f 75 6e | 74 20 62 79 20 77 68 69 |he amoun|t by whi|
|00004420| 63 68 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 74 |ch the c|urrent t|
|00004430| 61 62 6c 65 20 69 73 20 | 74 6f 6f 20 77 69 64 65 |able is |too wide|
|00004440| 2e 0a 25 20 20 20 20 5c | 62 65 67 69 6e 7b 6d 61 |..% \|begin{ma|
|00004450| 63 72 6f 63 6f 64 65 7d | 0a 20 20 20 20 5c 64 69 |crocode}|. \di|
|00004460| 6d 65 6e 40 3d 5c 77 64 | 5c 40 74 65 6d 70 62 6f |men@=\wd|\@tempbo|
|00004470| 78 61 0a 20 20 20 20 5c | 61 64 76 61 6e 63 65 5c |xa. \|advance\|
|00004480| 64 69 6d 65 6e 40 20 2d | 5c 54 58 40 74 61 72 67 |dimen@ -|\TX@targ|
|00004490| 65 74 0a 20 20 20 20 5c | 69 66 64 69 6d 5c 64 69 |et. \|ifdim\di|
|000044a0| 6d 65 6e 40 3c 5c 54 58 | 40 64 65 6c 74 61 0a 25 |men@<\TX|@delta.%|
|000044b0| 20 20 20 20 5c 65 6e 64 | 7b 6d 61 63 72 6f 63 6f | \end|{macroco|
|000044c0| 64 65 7d 0a 25 20 49 66 | 20 74 68 69 73 20 61 6d |de}.% If| this am|
|000044d0| 6f 75 6e 74 20 69 73 20 | 6c 65 73 73 20 74 68 61 |ount is |less tha|
|000044e0| 6e 20 22 5c 54 58 40 64 | 65 6c 74 61 22 2c 20 73 |n "\TX@d|elta", s|
|000044f0| 74 6f 70 2e 20 28 22 5c | 54 58 40 64 65 6c 74 61 |top. ("\|TX@delta|
|00004500| 22 0a 25 20 73 68 6f 75 | 6c 64 20 62 65 20 6e 6f |".% shou|ld be no|
|00004510| 6e 2d 7a 65 72 6f 20 6f | 74 68 65 72 77 69 73 65 |n-zero o|therwise|
|00004520| 20 77 65 20 6d 61 79 20 | 6d 69 73 73 20 74 68 65 | we may |miss the|
|00004530| 20 74 61 72 67 65 74 20 | 64 75 65 20 74 6f 20 72 | target |due to r|
|00004540| 6f 75 6e 64 69 6e 67 0a | 25 20 65 72 72 6f 72 2e |ounding.|% error.|
|00004550| 29 0a 25 20 20 20 20 5c | 62 65 67 69 6e 7b 6d 61 |).% \|begin{ma|
|00004560| 63 72 6f 63 6f 64 65 7d | 0a 20 20 20 20 20 20 5c |crocode}|. \|
|00004570| 54 58 40 74 79 70 65 6f | 75 74 40 7b 52 65 61 63 |TX@typeo|ut@{Reac|
|00004580| 68 65 64 20 74 61 72 67 | 65 74 2e 7d 25 0a 20 20 |hed targ|et.}%. |
|00004590| 20 20 5c 65 6c 73 65 0a | 25 20 20 20 20 5c 65 6e | \else.|% \en|
|000045a0| 64 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 25 20 52 |d{macroc|ode}.% R|
|000045b0| 65 64 75 63 65 20 74 68 | 65 20 6e 75 6d 62 65 72 |educe th|e number|
|000045c0| 20 6f 66 20 65 66 66 65 | 63 74 69 76 65 20 7b 5c | of effe|ctive {\|
|000045d0| 74 74 66 61 6d 69 6c 79 | 20 58 7d 20 63 6f 6c 75 |ttfamily| X} colu|
|000045e0| 6d 6e 73 20 62 79 20 6f | 6e 65 2e 20 28 43 68 65 |mns by o|ne. (Che|
|000045f0| 63 6b 69 6e 67 0a 25 20 | 74 68 61 74 20 77 65 20 |cking.% |that we |
|00004600| 64 6f 20 6e 6f 74 20 67 | 65 74 20 30 2c 20 61 73 |do not g|et 0, as|
|00004610| 20 74 68 69 73 20 77 6f | 75 6c 64 20 70 72 6f 64 | this wo|uld prod|
|00004620| 75 63 65 20 61 6e 20 65 | 72 72 6f 72 20 6c 61 74 |uce an e|rror lat|
|00004630| 65 72 2e 29 20 54 68 65 | 6e 0a 25 20 64 69 76 69 |er.) The|n.% divi|
|00004640| 64 65 20 65 78 63 65 73 | 73 20 77 69 64 74 68 20 |de exces|s width |
|00004650| 62 79 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |by the n|umber of|
|00004660| 20 65 66 66 65 63 74 69 | 76 65 20 63 6f 6c 75 6d | effecti|ve colum|
|00004670| 6e 73 2c 20 61 6e 64 20 | 63 61 6c 63 75 6c 61 74 |ns, and |calculat|
|00004680| 65 0a 25 20 74 68 65 20 | 6e 65 77 20 63 6f 6c 75 |e.% the |new colu|
|00004690| 6d 6e 20 77 69 64 74 68 | 2e 20 54 65 6d 70 6f 72 |mn width|. Tempor|
|000046a0| 61 72 69 6c 79 20 73 74 | 6f 72 65 20 74 68 69 73 |arily st|ore this|
|000046b0| 20 76 61 6c 75 65 20 28 | 74 69 6d 65 73 20 2d 31 | value (|times -1|
|000046c0| 29 20 69 6e 0a 25 20 22 | 5c 64 69 6d 65 6e 40 22 |) in.% "|\dimen@"|
|000046d0| 2e 0a 25 20 20 20 20 5c | 62 65 67 69 6e 7b 6d 61 |..% \|begin{ma|
|000046e0| 63 72 6f 63 6f 64 65 7d | 0a 20 20 20 20 20 20 5c |crocode}|. \|
|000046f0| 69 66 6e 75 6d 5c 54 58 | 40 63 6f 6c 73 3e 5c 40 |ifnum\TX|@cols>\@|
|00004700| 6e 65 0a 20 20 20 20 20 | 20 20 20 5c 61 64 76 61 |ne. | \adva|
|00004710| 6e 63 65 5c 54 58 40 63 | 6f 6c 73 20 62 79 20 5c |nce\TX@c|ols by \|
|00004720| 6d 40 6e 65 0a 20 20 20 | 20 20 20 5c 66 69 0a 20 |m@ne. | \fi. |
|00004730| 20 20 20 20 20 5c 64 69 | 76 69 64 65 5c 64 69 6d | \di|vide\dim|
|00004740| 65 6e 40 20 62 79 20 5c | 54 58 40 63 6f 6c 73 0a |en@ by \|TX@cols.|
|00004750| 20 20 20 20 20 20 5c 61 | 64 76 61 6e 63 65 5c 64 | \a|dvance\d|
|00004760| 69 6d 65 6e 40 20 62 79 | 20 2d 5c 54 58 40 63 6f |imen@ by| -\TX@co|
|00004770| 6c 40 77 69 64 74 68 0a | 20 20 20 20 20 20 5c 69 |l@width.| \i|
|00004780| 66 64 69 6d 20 5c 64 69 | 6d 65 6e 40 20 3e 20 5c |fdim \di|men@ > \|
|00004790| 7a 40 0a 25 20 20 20 20 | 5c 65 6e 64 7b 6d 61 63 |z@.% |\end{mac|
|000047a0| 72 6f 63 6f 64 65 7d 0a | 25 20 49 66 20 74 68 65 |rocode}.|% If the|
|000047b0| 20 6e 65 77 20 77 69 64 | 74 68 20 77 6f 75 6c 64 | new wid|th would|
|000047c0| 20 62 65 20 74 6f 6f 20 | 6e 61 72 72 6f 77 2c 20 | be too |narrow, |
|000047d0| 61 62 6f 72 74 20 74 68 | 65 20 6c 6f 6f 70 2e 20 |abort th|e loop. |
|000047e0| 41 74 20 74 68 65 20 6d | 6f 6d 65 6e 74 0a 25 20 |At the m|oment.% |
|000047f0| 74 6f 6f 20 6e 61 72 72 | 6f 77 2c 20 6d 65 61 6e |too narr|ow, mean|
|00004800| 73 20 6c 65 73 73 20 74 | 68 61 6e 20 30 5c 2c 70 |s less t|han 0\,p|
|00004810| 74 21 0a 25 20 20 20 20 | 5c 62 65 67 69 6e 7b 6d |t!.% |\begin{m|
|00004820| 61 63 72 6f 63 6f 64 65 | 7d 0a 20 20 20 20 20 20 |acrocode|}. |
|00004830| 20 20 5c 54 58 40 74 79 | 70 65 6f 75 74 40 7b 43 | \TX@ty|peout@{C|
|00004840| 6f 6c 75 6d 6e 73 20 74 | 6f 6f 20 6e 61 72 72 6f |olumns t|oo narro|
|00004850| 77 2e 7d 25 0a 20 20 20 | 20 20 20 5c 65 6c 73 65 |w.}%. | \else|
|00004860| 0a 25 20 20 20 20 5c 65 | 6e 64 7b 6d 61 63 72 6f |.% \e|nd{macro|
|00004870| 63 6f 64 65 7d 0a 25 20 | 4f 74 68 65 72 77 69 73 |code}.% |Otherwis|
|00004880| 65 20 73 61 76 65 20 74 | 68 65 20 6f 6c 64 20 73 |e save t|he old s|
|00004890| 65 74 74 69 6e 67 73 2c | 20 61 6e 64 20 73 65 74 |ettings,| and set|
|000048a0| 20 74 68 65 20 6e 65 77 | 20 63 6f 6c 75 6d 6e 20 | the new| column |
|000048b0| 77 69 64 74 68 2e 20 53 | 65 74 20 74 68 65 0a 25 |width. S|et the.%|
|000048c0| 20 66 6c 61 67 20 74 6f | 20 74 72 75 65 20 73 6f | flag to| true so|
|000048d0| 20 74 68 61 74 20 74 68 | 65 20 74 61 62 6c 65 20 | that th|e table |
|000048e0| 77 69 6c 6c 20 62 65 20 | 73 65 74 2c 20 61 6e 64 |will be |set, and|
|000048f0| 20 74 68 65 20 6c 6f 6f | 70 20 77 69 6c 6c 20 62 | the loo|p will b|
|00004900| 65 0a 25 20 65 78 65 63 | 75 74 65 64 20 61 67 61 |e.% exec|uted aga|
|00004910| 69 6e 2e 0a 25 20 20 20 | 20 5c 62 65 67 69 6e 7b |in..% | \begin{|
|00004920| 6d 61 63 72 6f 63 6f 64 | 65 7d 0a 20 20 20 20 20 |macrocod|e}. |
|00004930| 20 20 20 5c 54 58 40 6f | 6c 64 40 63 6f 6c 3d 5c | \TX@o|ld@col=\|
|00004940| 54 58 40 63 6f 6c 40 77 | 69 64 74 68 0a 20 20 20 |TX@col@w|idth. |
|00004950| 20 20 20 20 20 5c 54 58 | 40 6f 6c 64 40 74 61 62 | \TX|@old@tab|
|00004960| 6c 65 3d 5c 77 64 5c 40 | 74 65 6d 70 62 6f 78 61 |le=\wd\@|tempboxa|
|00004970| 0a 20 20 20 20 20 20 20 | 20 5c 54 58 40 63 6f 6c |. | \TX@col|
|00004980| 40 77 69 64 74 68 3d 2d | 5c 64 69 6d 65 6e 40 0a |@width=-|\dimen@.|
|00004990| 20 20 20 20 20 20 20 20 | 5c 54 58 40 74 72 75 65 | |\TX@true|
|000049a0| 0a 20 20 20 20 20 20 5c | 66 69 0a 20 20 20 20 5c |. \|fi. \|
|000049b0| 66 69 0a 20 20 5c 66 69 | 7d 0a 25 20 20 20 20 5c |fi. \fi|}.% \|
|000049c0| 65 6e 64 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 25 |end{macr|ocode}.%|
|000049d0| 20 5c 65 6e 64 7b 6d 61 | 63 72 6f 7d 0a 25 0a 25 | \end{ma|cro}.%.%|
|000049e0| 20 5c 62 65 67 69 6e 7b | 6d 61 63 72 6f 7d 7b 5c | \begin{|macro}{\|
|000049f0| 54 58 40 64 65 6c 74 61 | 7d 0a 25 20 41 63 63 65 |TX@delta|}.% Acce|
|00004a00| 70 74 20 61 20 74 61 62 | 6c 65 20 74 68 61 74 20 |pt a tab|le that |
|00004a10| 69 73 20 77 69 74 68 69 | 6e 20 22 5c 68 66 75 7a |is withi|n "\hfuz|
|00004a20| 7a 22 20 6f 66 20 74 68 | 65 20 63 6f 72 72 65 63 |z" of th|e correc|
|00004a30| 74 20 77 69 64 74 68 2e | 0a 25 20 20 20 20 5c 62 |t width.|.% \b|
|00004a40| 65 67 69 6e 7b 6d 61 63 | 72 6f 63 6f 64 65 7d 0a |egin{mac|rocode}.|
|00004a50| 5c 54 58 40 64 65 6c 74 | 61 3d 5c 68 66 75 7a 7a |\TX@delt|a=\hfuzz|
|00004a60| 0a 25 20 20 20 20 5c 65 | 6e 64 7b 6d 61 63 72 6f |.% \e|nd{macro|
|00004a70| 63 6f 64 65 7d 0a 25 20 | 5c 65 6e 64 7b 6d 61 63 |code}.% |\end{mac|
|00004a80| 72 6f 7d 0a 25 0a 25 20 | 49 6e 69 74 69 61 6c 73 |ro}.%.% |Initials|
|00004a90| 65 20 74 68 65 20 7b 5c | 74 74 66 61 6d 69 6c 79 |e the {\|ttfamily|
|00004aa0| 20 58 7d 20 63 6f 6c 75 | 6d 6e 2e 20 54 68 65 20 | X} colu|mn. The |
|00004ab0| 64 65 66 69 6e 69 74 69 | 6f 6e 20 63 61 6e 20 62 |definiti|on can b|
|00004ac0| 65 20 65 6d 70 74 79 20 | 68 65 72 65 2c 0a 25 20 |e empty |here,.% |
|00004ad0| 61 73 20 69 74 20 69 73 | 20 73 65 74 20 66 6f 72 |as it is| set for|
|00004ae0| 20 65 61 63 68 20 7b 5c | 74 74 66 61 6d 69 6c 79 | each {\|ttfamily|
|00004af0| 20 74 61 62 75 6c 61 72 | 78 7d 20 65 6e 76 69 72 | tabular|x} envir|
|00004b00| 6f 6e 6d 65 6e 74 2e 0a | 25 20 20 20 20 5c 62 65 |onment..|% \be|
|00004b10| 67 69 6e 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 5c |gin{macr|ocode}.\|
|00004b20| 6e 65 77 63 6f 6c 75 6d | 6e 74 79 70 65 7b 58 7d |newcolum|ntype{X}|
|00004b30| 7b 7d 0a 25 20 20 20 20 | 5c 65 6e 64 7b 6d 61 63 |{}.% |\end{mac|
|00004b40| 72 6f 63 6f 64 65 7d 0a | 25 0a 25 20 5c 62 65 67 |rocode}.|%.% \beg|
|00004b50| 69 6e 7b 6d 61 63 72 6f | 7d 7b 5c 74 61 62 75 6c |in{macro|}{\tabul|
|00004b60| 61 72 78 63 6f 6c 75 6d | 6e 7d 0a 25 20 54 68 65 |arxcolum|n}.% The|
|00004b70| 20 64 65 66 61 75 6c 74 | 20 64 65 66 69 6e 69 74 | default| definit|
|00004b80| 69 6f 6e 20 6f 66 20 7b | 5c 74 74 66 61 6d 69 6c |ion of {|\ttfamil|
|00004b90| 79 20 58 7d 20 69 73 20 | 22 70 7b 23 31 7d 22 2e |y X} is |"p{#1}".|
|00004ba0| 0a 25 20 20 20 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |.% \b|egin{mac|
|00004bb0| 72 6f 63 6f 64 65 7d 0a | 5c 64 65 66 5c 74 61 62 |rocode}.|\def\tab|
|00004bc0| 75 6c 61 72 78 63 6f 6c | 75 6d 6e 23 31 7b 70 7b |ularxcol|umn#1{p{|
|00004bd0| 23 31 7d 7d 0a 25 20 20 | 20 20 5c 65 6e 64 7b 6d |#1}}.% | \end{m|
|00004be0| 61 63 72 6f 63 6f 64 65 | 7d 0a 25 20 5c 65 6e 64 |acrocode|}.% \end|
|00004bf0| 7b 6d 61 63 72 6f 7d 0a | 25 0a 25 20 5c 62 65 67 |{macro}.|%.% \beg|
|00004c00| 69 6e 7b 6d 61 63 72 6f | 7d 7b 5c 54 58 40 6e 65 |in{macro|}{\TX@ne|
|00004c10| 77 63 6f 6c 7d 0a 25 20 | 41 20 6c 69 74 74 6c 65 |wcol}.% |A little|
|00004c20| 20 6d 61 63 72 6f 20 6a | 75 73 74 20 75 73 65 64 | macro j|ust used|
|00004c30| 20 74 6f 20 63 75 74 20 | 64 6f 77 6e 20 74 68 65 | to cut |down the|
|00004c40| 20 6e 75 6d 62 65 72 20 | 6f 66 20 22 5c 65 78 70 | number |of "\exp|
|00004c50| 61 6e 64 61 66 74 65 72 | 22 0a 25 20 63 6f 6d 6d |andafter|".% comm|
|00004c60| 61 6e 64 73 20 6e 65 65 | 64 65 64 2e 0a 25 20 20 |ands nee|ded..% |
|00004c70| 20 20 5c 62 65 67 69 6e | 7b 6d 61 63 72 6f 63 6f | \begin|{macroco|
|00004c80| 64 65 7d 0a 5c 64 65 66 | 5c 54 58 40 6e 65 77 63 |de}.\def|\TX@newc|
|00004c90| 6f 6c 7b 5c 6e 65 77 63 | 6f 6c 40 7b 58 7d 5b 30 |ol{\newc|ol@{X}[0|
|00004ca0| 5d 7d 0a 25 20 20 20 20 | 5c 65 6e 64 7b 6d 61 63 |]}.% |\end{mac|
|00004cb0| 72 6f 63 6f 64 65 7d 0a | 25 20 5c 65 6e 64 7b 6d |rocode}.|% \end{m|
|00004cc0| 61 63 72 6f 7d 0a 25 0a | 25 20 5c 62 65 67 69 6e |acro}.%.|% \begin|
|00004cd0| 7b 6d 61 63 72 6f 7d 7b | 5c 54 58 40 74 72 69 61 |{macro}{|\TX@tria|
|00004ce0| 6c 7d 0a 25 20 4d 61 6b | 65 20 61 20 74 65 73 74 |l}.% Mak|e a test|
|00004cf0| 20 72 75 6e 2e 0a 25 20 | 20 20 20 5c 62 65 67 69 | run..% | \begi|
|00004d00| 6e 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 5c 64 65 |n{macroc|ode}.\de|
|00004d10| 66 5c 54 58 40 74 72 69 | 61 6c 23 31 7b 25 0a 20 |f\TX@tri|al#1{%. |
|00004d20| 20 5c 73 65 74 62 6f 78 | 5c 40 74 65 6d 70 62 6f | \setbox|\@tempbo|
|00004d30| 78 61 3d 5c 68 62 6f 78 | 7b 25 0a 25 20 20 20 20 |xa=\hbox|{%.% |
|00004d40| 5c 65 6e 64 7b 6d 61 63 | 72 6f 63 6f 64 65 7d 0a |\end{mac|rocode}.|
|00004d50| 25 20 41 6e 79 20 65 78 | 74 72 61 20 63 6f 6d 6d |% Any ex|tra comm|
|00004d60| 61 6e 64 73 2e 20 54 68 | 69 73 20 69 73 20 75 73 |ands. Th|is is us|
|00004d70| 65 64 20 6f 6e 20 74 68 | 65 20 66 69 72 73 74 20 |ed on th|e first |
|00004d80| 72 75 6e 20 74 6f 20 63 | 6f 75 6e 74 20 74 68 65 |run to c|ount the|
|00004d90| 20 6e 75 6d 62 65 72 0a | 25 20 6f 66 20 7b 5c 74 | number.|% of {\t|
|00004da0| 74 66 61 6d 69 6c 79 20 | 58 7d 20 63 6f 6c 75 6d |tfamily |X} colum|
|00004db0| 6e 73 2e 0a 25 20 20 20 | 20 5c 62 65 67 69 6e 7b |ns..% | \begin{|
|00004dc0| 6d 61 63 72 6f 63 6f 64 | 65 7d 0a 20 20 20 20 23 |macrocod|e}. #|
|00004dd0| 31 5c 72 65 6c 61 78 0a | 25 20 20 20 20 5c 65 6e |1\relax.|% \en|
|00004de0| 64 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 25 20 53 |d{macroc|ode}.% S|
|00004df0| 69 6e 63 65 20 76 31 2e | 30 34 2c 20 6d 61 6b 65 |ince v1.|04, make|
|00004e00| 20 22 5c 66 6f 6f 74 6e | 6f 74 65 74 65 78 74 22 | "\footn|otetext"|
|00004e10| 20 67 6f 62 62 6c 65 20 | 69 74 73 20 61 72 67 75 | gobble |its argu|
|00004e20| 6d 65 6e 74 73 2e 20 41 | 6c 73 6f 20 6c 6f 63 61 |ments. A|lso loca|
|00004e30| 6c 6c 79 0a 25 20 63 6c | 65 61 72 20 22 5c 54 58 |lly.% cl|ear "\TX|
|00004e40| 40 76 77 61 72 6e 22 20 | 73 6f 20 74 68 61 74 20 |@vwarn" |so that |
|00004e50| 74 68 65 20 77 61 72 6e | 69 6e 67 20 69 73 20 67 |the warn|ing is g|
|00004e60| 65 6e 65 72 61 74 65 64 | 20 62 79 20 74 68 65 20 |enerated| by the |
|00004e70| 7b 5c 74 74 66 61 6d 69 | 6c 79 0a 25 20 66 69 6e |{\ttfami|ly.% fin|
|00004e80| 61 6c 7d 20 72 75 6e 2c | 20 61 6e 64 20 64 6f 65 |al} run,| and doe|
|00004e90| 73 20 6e 6f 74 20 61 70 | 70 65 61 72 20 69 6e 20 |s not ap|pear in |
|00004ea0| 74 68 65 20 6d 69 64 64 | 6c 65 20 6f 66 20 74 68 |the midd|le of th|
|00004eb0| 65 20 74 61 62 6c 65 20 | 69 66 0a 25 20 22 5c 74 |e table |if.% "\t|
|00004ec0| 72 61 63 69 6e 67 74 61 | 62 75 6c 61 72 78 22 2e |racingta|bularx".|
|00004ed0| 0a 25 20 20 20 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |.% \b|egin{mac|
|00004ee0| 72 6f 63 6f 64 65 7d 0a | 20 20 5c 6c 65 74 5c 40 |rocode}.| \let\@|
|00004ef0| 66 6f 6f 74 6e 6f 74 65 | 74 65 78 74 5c 54 58 40 |footnote|text\TX@|
|00004f00| 74 72 69 61 6c 40 66 74 | 6e 0a 20 20 5c 6c 65 74 |trial@ft|n. \let|
|00004f10| 5c 54 58 40 76 77 61 72 | 6e 5c 40 65 6d 70 74 79 |\TX@vwar|n\@empty|
|00004f20| 0a 25 20 20 20 20 5c 65 | 6e 64 7b 6d 61 63 72 6f |.% \e|nd{macro|
|00004f30| 63 6f 64 65 7d 0a 25 20 | 44 6f 20 6e 6f 74 20 6e |code}.% |Do not n|
|00004f40| 65 73 74 20 7b 5c 74 74 | 66 61 6d 69 6c 79 20 74 |est {\tt|family t|
|00004f50| 61 62 75 6c 61 72 78 7d | 20 65 6e 76 69 72 6f 6e |abularx}| environ|
|00004f60| 6d 65 6e 74 73 20 64 75 | 72 69 6e 67 20 74 72 69 |ments du|ring tri|
|00004f70| 61 6c 20 72 75 6e 73 2e | 20 54 68 69 73 0a 25 20 |al runs.| This.% |
|00004f80| 77 6f 75 6c 64 20 77 61 | 73 74 65 20 74 69 6d 65 |would wa|ste time|
|00004f90| 2c 20 61 6e 64 20 74 68 | 65 20 67 6c 6f 62 61 6c |, and th|e global|
|00004fa0| 20 73 65 74 74 69 6e 67 | 20 6f 66 20 22 5c 54 58 | setting| of "\TX|
|00004fb0| 40 63 6f 6c 73 22 20 77 | 6f 75 6c 64 20 62 72 65 |@cols" w|ould bre|
|00004fc0| 61 6b 20 74 68 65 0a 25 | 20 61 6c 67 6f 72 69 74 |ak the.%| algorit|
|00004fd0| 68 6d 2e 0a 25 20 20 20 | 20 5c 62 65 67 69 6e 7b |hm..% | \begin{|
|00004fe0| 6d 61 63 72 6f 63 6f 64 | 65 7d 0a 20 20 20 5c 65 |macrocod|e}. \e|
|00004ff0| 78 70 61 6e 64 61 66 74 | 65 72 5c 6c 65 74 5c 65 |xpandaft|er\let\e|
|00005000| 78 70 61 6e 64 61 66 74 | 65 72 5c 74 61 62 75 6c |xpandaft|er\tabul|
|00005010| 61 72 78 5c 63 73 6e 61 | 6d 65 20 74 61 62 75 6c |arx\csna|me tabul|
|00005020| 61 72 2a 5c 65 6e 64 63 | 73 6e 61 6d 65 0a 20 20 |ar*\endc|sname. |
|00005030| 20 5c 65 78 70 61 6e 64 | 61 66 74 65 72 5c 6c 65 | \expand|after\le|
|00005040| 74 5c 65 78 70 61 6e 64 | 61 66 74 65 72 5c 65 6e |t\expand|after\en|
|00005050| 64 74 61 62 75 6c 61 72 | 78 5c 63 73 6e 61 6d 65 |dtabular|x\csname|
|00005060| 20 65 6e 64 74 61 62 75 | 6c 61 72 2a 5c 65 6e 64 | endtabu|lar*\end|
|00005070| 63 73 6e 61 6d 65 0a 25 | 20 20 20 20 5c 65 6e 64 |csname.%| \end|
|00005080| 7b 6d 61 63 72 6f 63 6f | 64 65 7d 0a 25 20 41 64 |{macroco|de}.% Ad|
|00005090| 64 65 64 20 61 74 20 76 | 31 2e 30 35 3a 20 64 69 |ded at v|1.05: di|
|000050a0| 73 73 61 62 6c 65 20 22 | 5c 77 72 69 74 65 22 73 |ssable "|\write"s|
|000050b0| 20 64 75 72 69 6e 67 20 | 61 20 74 72 69 61 6c 20 | during |a trial |
|000050c0| 72 75 6e 2e 20 54 68 69 | 73 20 74 72 69 63 6b 20 |run. Thi|s trick |
|000050d0| 69 73 0a 25 20 66 72 6f | 6d 20 74 68 65 20 5c 54 |is.% fro|m the \T|
|000050e0| 65 58 7b 7d 42 6f 6f 6b | 2e 0a 25 20 20 20 20 5c |eX{}Book|..% \|
|000050f0| 62 65 67 69 6e 7b 6d 61 | 63 72 6f 63 6f 64 65 7d |begin{ma|crocode}|
|00005100| 0a 20 20 20 5c 6c 65 74 | 5c 69 6d 6d 65 64 69 61 |. \let|\immedia|
|00005110| 74 65 3d 5c 72 65 6c 61 | 78 5c 64 65 66 5c 77 72 |te=\rela|x\def\wr|
|00005120| 69 74 65 23 23 31 23 23 | 7b 7b 5c 61 66 74 65 72 |ite##1##|{{\after|
|00005130| 61 73 73 69 67 6e 6d 65 | 6e 74 7d 5c 74 6f 6b 73 |assignme|nt}\toks|
|00005140| 40 3d 7d 25 0a 25 20 20 | 20 20 5c 65 6e 64 7b 6d |@=}%.% | \end{m|
|00005150| 61 63 72 6f 63 6f 64 65 | 7d 0a 25 20 54 75 72 6e |acrocode|}.% Turn|
|00005160| 20 6f 66 66 20 77 61 72 | 6e 69 6e 67 73 20 28 73 | off war|nings (s|
|00005170| 65 65 20 61 70 70 65 6e | 64 69 78 20 44 29 2e 20 |ee appen|dix D). |
|00005180| 41 6c 73 6f 20 70 72 65 | 76 65 6e 74 20 74 68 65 |Also pre|vent the|
|00005190| 6d 20 62 65 69 6e 67 20 | 74 75 72 6e 65 64 0a 25 |m being |turned.%|
|000051a0| 20 62 61 63 6b 20 6f 6e | 20 62 79 20 73 65 74 74 | back on| by sett|
|000051b0| 69 6e 67 20 74 68 65 20 | 70 61 72 61 6d 65 74 65 |ing the |paramete|
|000051c0| 72 20 6e 61 6d 65 73 20 | 74 6f 20 62 65 20 72 65 |r names |to be re|
|000051d0| 67 69 73 74 65 72 73 2e | 0a 25 20 20 20 20 5c 62 |gisters.|.% \b|
|000051e0| 65 67 69 6e 7b 6d 61 63 | 72 6f 63 6f 64 65 7d 0a |egin{mac|rocode}.|
|000051f0| 20 20 20 20 5c 68 62 61 | 64 6e 65 73 73 3d 5c 40 | \hba|dness=\@|
|00005200| 4d 5c 68 66 75 7a 7a 3d | 5c 6d 61 78 64 69 6d 65 |M\hfuzz=|\maxdime|
|00005210| 6e 0a 20 20 20 20 5c 6c | 65 74 5c 68 62 61 64 6e |n. \l|et\hbadn|
|00005220| 65 73 73 3d 5c 40 74 65 | 6d 70 63 6e 74 61 5c 6c |ess=\@te|mpcnta\l|
|00005230| 65 74 5c 68 66 75 7a 7a | 3d 5c 40 74 65 6d 70 64 |et\hfuzz|=\@tempd|
|00005240| 69 6d 61 0a 25 20 20 20 | 20 5c 65 6e 64 7b 6d 61 |ima.% | \end{ma|
|00005250| 63 72 6f 63 6f 64 65 7d | 0a 25 20 4d 61 6b 65 20 |crocode}|.% Make |
|00005260| 74 68 65 20 74 61 62 6c | 65 2c 20 61 6e 64 20 66 |the tabl|e, and f|
|00005270| 69 6e 69 73 68 20 74 68 | 65 20 68 62 6f 78 2e 0a |inish th|e hbox..|
|00005280| 25 20 53 69 6e 63 65 20 | 76 31 2e 30 36 2c 20 22 |% Since |v1.06, "|
|00005290| 5c 74 6f 6b 73 40 22 20 | 63 6f 6e 74 61 69 6e 73 |\toks@" |contains|
|000052a0| 20 74 68 65 20 70 72 65 | 61 6d 62 6c 65 20 73 70 | the pre|amble sp|
|000052b0| 65 63 69 66 69 63 61 74 | 69 6f 6e 2c 0a 25 20 61 |ecificat|ion,.% a|
|000052c0| 6e 64 20 70 6f 73 73 69 | 62 6c 65 20 6f 70 74 69 |nd possi|ble opti|
|000052d0| 6f 6e 61 6c 20 61 72 67 | 75 6d 65 6e 74 2c 20 61 |onal arg|ument, a|
|000052e0| 73 20 77 65 6c 6c 20 61 | 73 20 74 68 65 20 74 61 |s well a|s the ta|
|000052f0| 62 6c 65 20 62 6f 64 79 | 2e 0a 25 20 20 20 20 5c |ble body|..% \|
|00005300| 62 65 67 69 6e 7b 6d 61 | 63 72 6f 63 6f 64 65 7d |begin{ma|crocode}|
|00005310| 0a 20 20 20 20 5c 65 78 | 70 61 6e 64 61 66 74 65 |. \ex|pandafte|
|00005320| 72 5c 74 61 62 75 6c 61 | 72 5c 74 68 65 5c 74 6f |r\tabula|r\the\to|
|00005330| 6b 73 40 0a 20 20 20 20 | 5c 65 6e 64 74 61 62 75 |ks@. |\endtabu|
|00005340| 6c 61 72 7d 25 0a 25 20 | 20 20 20 5c 65 6e 64 7b |lar}%.% | \end{|
|00005350| 6d 61 63 72 6f 63 6f 64 | 65 7d 0a 25 20 53 69 6e |macrocod|e}.% Sin|
|00005360| 63 65 20 76 31 2e 30 35 | 20 72 65 73 65 74 20 61 |ce v1.05| reset a|
|00005370| 6c 6c 20 5c 4c 61 54 65 | 58 5c 20 63 6f 75 6e 74 |ll \LaTe|X\ count|
|00005380| 65 72 73 2c 20 62 79 20 | 65 78 65 63 75 74 69 6e |ers, by |executin|
|00005390| 67 20 22 5c 54 58 40 63 | 6b 70 74 22 2e 0a 25 20 |g "\TX@c|kpt"..% |
|000053a0| 20 20 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 63 | \begi|n{macroc|
|000053b0| 6f 64 65 7d 0a 20 20 5c | 54 58 40 63 6b 70 74 0a |ode}. \|TX@ckpt.|
|000053c0| 25 20 20 20 20 5c 65 6e | 64 7b 6d 61 63 72 6f 63 |% \en|d{macroc|
|000053d0| 6f 64 65 7d 0a 25 20 50 | 72 69 6e 74 20 73 6f 6d |ode}.% P|rint som|
|000053e0| 65 20 73 74 61 74 69 73 | 74 69 63 73 2e 0a 25 20 |e statis|tics..% |
|000053f0| 41 64 64 65 64 20 22 5c | 54 58 40 61 6c 69 67 6e |Added "\|TX@align|
|00005400| 22 20 69 6e 20 76 31 2e | 30 35 2c 20 74 6f 20 6c |" in v1.|05, to l|
|00005410| 69 6e 65 20 75 70 20 74 | 68 65 20 63 6f 6c 75 6d |ine up t|he colum|
|00005420| 6e 73 2e 0a 25 20 20 20 | 20 5c 62 65 67 69 6e 7b |ns..% | \begin{|
|00005430| 6d 61 63 72 6f 63 6f 64 | 65 7d 0a 20 20 5c 54 58 |macrocod|e}. \TX|
|00005440| 40 74 79 70 65 6f 75 74 | 40 7b 5c 40 73 70 61 63 |@typeout|@{\@spac|
|00005450| 65 73 0a 20 20 20 20 20 | 5c 65 78 70 61 6e 64 61 |es. |\expanda|
|00005460| 66 74 65 72 5c 54 58 40 | 61 6c 69 67 6e 0a 20 20 |fter\TX@|align. |
|00005470| 20 20 20 20 20 20 5c 74 | 68 65 5c 77 64 5c 40 74 | \t|he\wd\@t|
|00005480| 65 6d 70 62 6f 78 61 5c | 73 70 61 63 65 5c 73 70 |empboxa\|space\sp|
|00005490| 61 63 65 5c 73 70 61 63 | 65 5c 73 70 61 63 65 5c |ace\spac|e\space\|
|000054a0| 73 70 61 63 65 5c 40 40 | 0a 20 20 20 20 20 5c 65 |space\@@|. \e|
|000054b0| 78 70 61 6e 64 61 66 74 | 65 72 5c 54 58 40 61 6c |xpandaft|er\TX@al|
|000054c0| 69 67 6e 0a 20 20 20 20 | 20 20 20 20 5c 74 68 65 |ign. | \the|
|000054d0| 5c 54 58 40 63 6f 6c 40 | 77 69 64 74 68 5c 73 70 |\TX@col@|width\sp|
|000054e0| 61 63 65 5c 73 70 61 63 | 65 5c 73 70 61 63 65 5c |ace\spac|e\space\|
|000054f0| 73 70 61 63 65 5c 73 70 | 61 63 65 5c 40 40 0a 20 |space\sp|ace\@@. |
|00005500| 20 20 20 20 5c 40 73 70 | 61 63 65 73 5c 74 68 65 | \@sp|aces\the|
|00005510| 5c 54 58 40 63 6f 6c 73 | 7d 7d 0a 25 20 20 20 20 |\TX@cols|}}.% |
|00005520| 5c 65 6e 64 7b 6d 61 63 | 72 6f 63 6f 64 65 7d 0a |\end{mac|rocode}.|
|00005530| 25 20 5c 65 6e 64 7b 6d | 61 63 72 6f 7d 0a 25 0a |% \end{m|acro}.%.|
|00005540| 25 20 5c 62 65 67 69 6e | 7b 6d 61 63 72 6f 7d 7b |% \begin|{macro}{|
|00005550| 5c 54 58 40 61 6c 69 67 | 6e 7d 0a 25 20 4d 61 63 |\TX@alig|n}.% Mac|
|00005560| 72 6f 20 61 64 64 65 64 | 20 61 74 20 76 31 2e 30 |ro added| at v1.0|
|00005570| 35 2c 20 74 6f 20 69 6d | 70 72 6f 76 65 20 74 68 |5, to im|prove th|
|00005580| 65 20 70 72 69 6e 74 69 | 6e 67 20 6f 66 20 74 68 |e printi|ng of th|
|00005590| 65 20 74 72 61 63 69 6e | 67 20 69 6e 66 6f 2e 0a |e tracin|g info..|
|000055a0| 25 20 20 20 20 5c 62 65 | 67 69 6e 7b 6d 61 63 72 |% \be|gin{macr|
|000055b0| 6f 63 6f 64 65 7d 0a 5c | 64 65 66 5c 54 58 40 61 |ocode}.\|def\TX@a|
|000055c0| 6c 69 67 6e 23 31 2e 23 | 32 23 33 23 34 23 35 23 |lign#1.#|2#3#4#5#|
|000055d0| 36 23 37 23 38 23 39 5c | 40 40 7b 25 0a 20 20 5c |6#7#8#9\|@@{%. \|
|000055e0| 69 66 6e 75 6d 23 31 3c | 31 30 20 5c 73 70 61 63 |ifnum#1<|10 \spac|
|000055f0| 65 5c 66 69 0a 20 20 5c | 69 66 6e 75 6d 23 31 3c |e\fi. \|ifnum#1<|
|00005600| 31 30 30 20 5c 73 70 61 | 63 65 5c 66 69 0a 20 20 |100 \spa|ce\fi. |
|00005610| 5c 69 66 6e 75 6d 23 31 | 3c 5c 40 6d 5c 73 70 61 |\ifnum#1|<\@m\spa|
|00005620| 63 65 5c 66 69 0a 20 20 | 5c 69 66 6e 75 6d 23 31 |ce\fi. |\ifnum#1|
|00005630| 3c 5c 40 4d 5c 73 70 61 | 63 65 5c 66 69 0a 20 20 |<\@M\spa|ce\fi. |
|00005640| 23 31 2e 23 32 23 33 23 | 34 23 35 23 36 23 37 23 |#1.#2#3#|4#5#6#7#|
|00005650| 38 5c 73 70 61 63 65 5c | 73 70 61 63 65 7d 0a 25 |8\space\|space}.%|
|00005660| 20 20 20 20 5c 65 6e 64 | 7b 6d 61 63 72 6f 63 6f | \end|{macroco|
|00005670| 64 65 7d 0a 25 20 5c 65 | 6e 64 7b 6d 61 63 72 6f |de}.% \e|nd{macro|
|00005680| 7d 0a 25 0a 25 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |}.%.% \b|egin{mac|
|00005690| 72 6f 7d 7b 5c 61 72 72 | 61 79 62 61 63 6b 73 6c |ro}{\arr|aybacksl|
|000056a0| 61 73 68 7d 0a 25 20 22 | 5c 5c 22 20 68 61 63 6b |ash}.% "|\\" hack|
|000056b0| 2e 0a 25 20 20 20 20 5c | 62 65 67 69 6e 7b 6d 61 |..% \|begin{ma|
|000056c0| 63 72 6f 63 6f 64 65 7d | 0a 5c 64 65 66 5c 61 72 |crocode}|.\def\ar|
|000056d0| 72 61 79 62 61 63 6b 73 | 6c 61 73 68 7b 5c 6c 65 |raybacks|lash{\le|
|000056e0| 74 5c 5c 3d 5c 40 61 72 | 72 61 79 63 72 7d 0a 25 |t\\=\@ar|raycr}.%|
|000056f0| 20 20 20 20 5c 65 6e 64 | 7b 6d 61 63 72 6f 63 6f | \end|{macroco|
|00005700| 64 65 7d 0a 25 20 5c 65 | 6e 64 7b 6d 61 63 72 6f |de}.% \e|nd{macro|
|00005710| 7d 0a 25 0a 25 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |}.%.% \b|egin{mac|
|00005720| 72 6f 7d 7b 5c 74 72 61 | 63 69 6e 67 74 61 62 75 |ro}{\tra|cingtabu|
|00005730| 6c 61 72 78 7d 0a 25 20 | 50 72 69 6e 74 20 73 74 |larx}.% |Print st|
|00005740| 61 74 69 73 74 69 63 73 | 20 6f 6e 20 63 6f 6c 75 |atistics| on colu|
|00005750| 6d 6e 20 61 6e 64 20 74 | 61 62 6c 65 20 77 69 64 |mn and t|able wid|
|00005760| 74 68 73 2e 0a 25 20 20 | 20 20 5c 62 65 67 69 6e |ths..% | \begin|
|00005770| 7b 6d 61 63 72 6f 63 6f | 64 65 7d 0a 5c 64 65 66 |{macroco|de}.\def|
|00005780| 5c 74 72 61 63 69 6e 67 | 74 61 62 75 6c 61 72 78 |\tracing|tabularx|
|00005790| 7b 25 0a 20 20 5c 64 65 | 66 5c 54 58 40 74 79 70 |{%. \de|f\TX@typ|
|000057a0| 65 6f 75 74 7b 5c 50 61 | 63 6b 61 67 65 57 61 72 |eout{\Pa|ckageWar|
|000057b0| 6e 69 6e 67 4e 6f 4c 69 | 6e 65 7b 74 61 62 75 6c |ningNoLi|ne{tabul|
|000057c0| 61 72 78 7d 7d 25 0a 20 | 20 5c 64 65 66 5c 54 58 |arx}}%. | \def\TX|
|000057d0| 40 74 79 70 65 6f 75 74 | 40 23 23 31 7b 5c 74 79 |@typeout|@##1{\ty|
|000057e0| 70 65 6f 75 74 7b 28 74 | 61 62 75 6c 61 72 78 29 |peout{(t|abularx)|
|000057f0| 20 23 23 31 7d 7d 7d 0a | 25 20 20 20 20 5c 65 6e | ##1}}}.|% \en|
|00005800| 64 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 25 20 5c |d{macroc|ode}.% \|
|00005810| 65 6e 64 7b 6d 61 63 72 | 6f 7d 0a 25 0a 25 20 5c |end{macr|o}.%.% \|
|00005820| 62 65 67 69 6e 7b 6d 61 | 63 72 6f 7d 7b 5c 54 58 |begin{ma|cro}{\TX|
|00005830| 40 74 79 70 65 6f 75 74 | 7d 0a 25 20 54 68 65 20 |@typeout|}.% The |
|00005840| 64 65 66 61 75 6c 74 20 | 69 73 20 74 6f 20 62 65 |default |is to be|
|00005850| 20 74 6f 20 62 65 20 71 | 75 69 65 74 0a 25 20 20 | to be q|uiet.% |
|00005860| 20 20 5c 62 65 67 69 6e | 7b 6d 61 63 72 6f 63 6f | \begin|{macroco|
|00005870| 64 65 7d 0a 5c 6c 65 74 | 5c 54 58 40 74 79 70 65 |de}.\let|\TX@type|
|00005880| 6f 75 74 5c 40 67 6f 62 | 62 6c 65 0a 5c 6c 65 74 |out\@gob|ble.\let|
|00005890| 5c 54 58 40 74 79 70 65 | 6f 75 74 40 5c 40 67 6f |\TX@type|out@\@go|
|000058a0| 62 62 6c 65 0a 25 20 20 | 20 20 5c 65 6e 64 7b 6d |bble.% | \end{m|
|000058b0| 61 63 72 6f 63 6f 64 65 | 7d 0a 25 20 5c 65 6e 64 |acrocode|}.% \end|
|000058c0| 7b 6d 61 63 72 6f 7d 0a | 25 0a 25 20 5c 62 65 67 |{macro}.|%.% \beg|
|000058d0| 69 6e 7b 6d 61 63 72 6f | 7d 7b 5c 54 58 40 66 74 |in{macro|}{\TX@ft|
|000058e0| 6e 7d 0a 25 20 41 20 74 | 6f 6b 65 6e 20 72 65 67 |n}.% A t|oken reg|
|000058f0| 69 73 74 65 72 20 66 6f | 72 20 73 61 76 69 6e 67 |ister fo|r saving|
|00005900| 20 66 6f 6f 74 6e 6f 74 | 65 20 74 65 78 74 73 2e | footnot|e texts.|
|00005910| 0a 25 20 20 20 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |.% \b|egin{mac|
|00005920| 72 6f 63 6f 64 65 7d 0a | 5c 6e 65 77 74 6f 6b 73 |rocode}.|\newtoks|
|00005930| 5c 54 58 40 66 74 6e 0a | 25 20 20 20 20 5c 65 6e |\TX@ftn.|% \en|
|00005940| 64 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 25 20 5c |d{macroc|ode}.% \|
|00005950| 65 6e 64 7b 6d 61 63 72 | 6f 7d 0a 25 0a 25 20 5c |end{macr|o}.%.% \|
|00005960| 62 65 67 69 6e 7b 6d 61 | 63 72 6f 7d 7b 5c 54 58 |begin{ma|cro}{\TX|
|00005970| 40 66 74 6e 74 65 78 74 | 7d 0a 25 20 5c 62 65 67 |@ftntext|}.% \beg|
|00005980| 69 6e 7b 6d 61 63 72 6f | 7d 7b 5c 54 58 40 78 66 |in{macro|}{\TX@xf|
|00005990| 74 6e 74 65 78 74 7d 0a | 25 20 49 6e 73 69 64 65 |tntext}.|% Inside|
|000059a0| 20 74 68 65 20 61 6c 69 | 67 6e 6d 65 6e 74 20 6a | the ali|gnment j|
|000059b0| 75 73 74 20 73 61 76 65 | 20 75 70 20 74 68 65 20 |ust save| up the |
|000059c0| 66 6f 6f 74 6e 6f 74 65 | 20 74 65 78 74 20 69 6e |footnote| text in|
|000059d0| 20 61 20 74 6f 6b 65 6e | 0a 25 20 72 65 67 69 73 | a token|.% regis|
|000059e0| 74 65 72 2e 0a 25 20 20 | 20 20 5c 62 65 67 69 6e |ter..% | \begin|
|000059f0| 7b 6d 61 63 72 6f 63 6f | 64 65 7d 0a 5c 6c 6f 6e |{macroco|de}.\lon|
|00005a00| 67 5c 64 65 66 5c 54 58 | 40 66 74 6e 74 65 78 74 |g\def\TX|@ftntext|
|00005a10| 23 31 7b 25 0a 20 20 5c | 65 64 65 66 5c 40 74 65 |#1{%. \|edef\@te|
|00005a20| 6d 70 61 7b 5c 74 68 65 | 5c 54 58 40 66 74 6e 5c |mpa{\the|\TX@ftn\|
|00005a30| 6e 6f 65 78 70 61 6e 64 | 5c 66 6f 6f 74 6e 6f 74 |noexpand|\footnot|
|00005a40| 65 74 65 78 74 0a 20 20 | 20 20 20 20 20 20 20 20 |etext. | |
|00005a50| 20 20 20 20 20 20 20 20 | 20 20 5b 5c 74 68 65 5c | | [\the\|
|00005a60| 63 73 6e 61 6d 65 20 63 | 40 5c 40 6d 70 66 6e 5c |csname c|@\@mpfn\|
|00005a70| 65 6e 64 63 73 6e 61 6d | 65 5d 7d 25 0a 20 20 5c |endcsnam|e]}%. \|
|00005a80| 67 6c 6f 62 61 6c 5c 54 | 58 40 66 74 6e 5c 65 78 |global\T|X@ftn\ex|
|00005a90| 70 61 6e 64 61 66 74 65 | 72 7b 5c 40 74 65 6d 70 |pandafte|r{\@temp|
|00005aa0| 61 7b 23 31 7d 7d 7d 25 | 0a 5c 6c 6f 6e 67 5c 64 |a{#1}}}%|.\long\d|
|00005ab0| 65 66 5c 54 58 40 78 66 | 74 6e 74 65 78 74 5b 23 |ef\TX@xf|tntext[#|
|00005ac0| 31 5d 23 32 7b 25 0a 20 | 20 5c 67 6c 6f 62 61 6c |1]#2{%. | \global|
|00005ad0| 5c 54 58 40 66 74 6e 5c | 65 78 70 61 6e 64 61 66 |\TX@ftn\|expandaf|
|00005ae0| 74 65 72 7b 5c 74 68 65 | 5c 54 58 40 66 74 6e 5c |ter{\the|\TX@ftn\|
|00005af0| 66 6f 6f 74 6e 6f 74 65 | 74 65 78 74 5b 23 31 5d |footnote|text[#1]|
|00005b00| 7b 23 32 7d 7d 7d 0a 25 | 20 20 20 20 5c 65 6e 64 |{#2}}}.%| \end|
|00005b10| 7b 6d 61 63 72 6f 63 6f | 64 65 7d 0a 25 20 5c 65 |{macroco|de}.% \e|
|00005b20| 6e 64 7b 6d 61 63 72 6f | 7d 0a 25 20 5c 65 6e 64 |nd{macro|}.% \end|
|00005b30| 7b 6d 61 63 72 6f 7d 0a | 25 0a 25 20 5c 62 65 67 |{macro}.|%.% \beg|
|00005b40| 69 6e 7b 6d 61 63 72 6f | 7d 7b 5c 54 58 40 74 72 |in{macro|}{\TX@tr|
|00005b50| 69 61 6c 40 66 74 6e 7d | 0a 25 20 4f 6e 20 74 72 |ial@ftn}|.% On tr|
|00005b60| 69 61 6c 20 72 75 6e 73 | 2c 20 67 6f 62 62 6c 65 |ial runs|, gobble|
|00005b70| 20 66 6f 6f 74 6e 6f 74 | 65 20 74 65 78 74 73 2e | footnot|e texts.|
|00005b80| 0a 25 20 20 20 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |.% \b|egin{mac|
|00005b90| 72 6f 63 6f 64 65 7d 0a | 5c 6c 6f 6e 67 5c 64 65 |rocode}.|\long\de|
|00005ba0| 66 5c 54 58 40 74 72 69 | 61 6c 40 66 74 6e 23 31 |f\TX@tri|al@ftn#1|
|00005bb0| 7b 7d 0a 25 20 20 20 20 | 5c 65 6e 64 7b 6d 61 63 |{}.% |\end{mac|
|00005bc0| 72 6f 63 6f 64 65 7d 0a | 25 20 5c 65 6e 64 7b 6d |rocode}.|% \end{m|
|00005bd0| 61 63 72 6f 7d 0a 25 0a | 25 20 54 68 69 73 20 6c |acro}.%.|% This l|
|00005be0| 61 73 74 20 73 65 63 74 | 69 6f 6e 20 77 61 73 20 |ast sect|ion was |
|00005bf0| 61 64 64 65 64 20 61 74 | 20 56 65 72 73 69 6f 6e |added at| Version|
|00005c00| 20 31 2e 30 32 2e 20 50 | 72 65 76 69 6f 75 73 20 | 1.02. P|revious |
|00005c10| 76 65 72 73 69 6f 6e 73 | 0a 25 20 64 6f 63 75 6d |versions|.% docum|
|00005c20| 65 6e 74 65 6e 74 65 64 | 20 74 68 65 20 66 61 63 |entented| the fac|
|00005c30| 74 20 74 68 61 74 20 22 | 5c 76 65 72 62 22 20 64 |t that "|\verb" d|
|00005c40| 69 64 20 6e 6f 74 20 77 | 6f 72 6b 20 69 6e 73 69 |id not w|ork insi|
|00005c50| 64 65 20 7b 5c 74 74 66 | 61 6d 69 6c 79 0a 25 20 |de {\ttf|amily.% |
|00005c60| 74 61 62 75 6c 61 72 78 | 7d 2c 20 62 75 74 20 74 |tabularx|}, but t|
|00005c70| 68 61 74 20 64 69 64 20 | 6e 6f 74 20 73 74 6f 70 |hat did |not stop|
|00005c80| 20 70 65 6f 70 6c 65 20 | 75 73 69 6e 67 20 69 74 | people |using it|
|00005c90| 21 20 54 68 69 73 20 75 | 73 75 61 6c 6c 79 20 70 |! This u|sually p|
|00005ca0| 75 74 0a 25 20 5c 4c 61 | 54 65 58 5c 20 69 6e 74 |ut.% \La|TeX\ int|
|00005cb0| 6f 20 61 6e 20 69 72 72 | 65 63 6f 76 65 72 61 62 |o an irr|ecoverab|
|00005cc0| 6c 65 20 65 72 72 6f 72 | 20 70 6f 73 69 74 69 6f |le error| positio|
|00005cd0| 6e 2c 20 77 69 74 68 20 | 65 72 72 6f 72 20 6d 65 |n, with |error me|
|00005ce0| 73 73 61 67 65 73 20 74 | 68 61 74 0a 25 20 64 69 |ssages t|hat.% di|
|00005cf0| 64 20 6e 6f 74 20 6d 65 | 6e 74 69 6f 6e 20 74 68 |d not me|ntion th|
|00005d00| 65 20 63 61 75 73 65 20 | 6f 66 20 74 68 65 20 65 |e cause |of the e|
|00005d10| 72 72 6f 72 2e 20 54 68 | 65 20 60 70 6f 6f 72 20 |rror. Th|e `poor |
|00005d20| 6d 61 6e 27 73 20 22 5c | 76 65 72 62 22 27 20 28 |man's "\|verb"' (|
|00005d30| 61 6e 64 0a 25 20 22 5c | 76 65 72 62 2a 22 29 20 |and.% "\|verb*") |
|00005d40| 64 65 66 69 6e 65 64 20 | 68 65 72 65 20 69 73 20 |defined |here is |
|00005d50| 62 61 73 65 64 20 6f 6e | 20 70 61 67 65 20 33 38 |based on| page 38|
|00005d60| 32 20 6f 66 20 74 68 65 | 20 5c 54 65 58 7b 7d 42 |2 of the| \TeX{}B|
|00005d70| 6f 6f 6b 2e 20 41 73 0a | 25 20 65 78 70 6c 61 69 |ook. As.|% explai|
|00005d80| 6e 65 64 20 74 68 65 72 | 65 2c 20 64 6f 69 6e 67 |ned ther|e, doing|
|00005d90| 20 76 65 72 62 61 74 69 | 6d 20 74 68 69 73 20 77 | verbati|m this w|
|00005da0| 61 79 20 6d 65 61 6e 73 | 20 74 68 61 74 20 73 70 |ay means| that sp|
|00005db0| 61 63 65 73 20 61 72 65 | 20 6e 6f 74 0a 25 20 74 |aces are| not.% t|
|00005dc0| 72 65 61 74 65 64 20 63 | 6f 72 72 65 63 74 6c 79 |reated c|orrectly|
|00005dd0| 2c 20 61 6e 64 20 73 6f | 20 22 5c 76 65 72 62 2a |, and so| "\verb*|
|00005de0| 22 20 6d 61 79 20 77 65 | 6c 6c 20 62 65 20 75 73 |" may we|ll be us|
|00005df0| 65 6c 65 73 73 2c 20 68 | 6f 77 65 76 65 72 20 49 |eless, h|owever I|
|00005e00| 0a 25 20 63 6f 6e 73 69 | 64 65 72 20 74 68 69 73 |.% consi|der this|
|00005e10| 20 73 65 63 74 69 6f 6e | 20 6f 66 20 63 6f 64 65 | section| of code|
|00005e20| 20 74 6f 20 62 65 20 65 | 72 72 6f 72 2d 72 65 63 | to be e|rror-rec|
|00005e30| 6f 76 65 72 79 2c 20 72 | 61 74 68 65 72 20 74 68 |overy, r|ather th|
|00005e40| 61 6e 20 61 20 72 65 61 | 6c 0a 25 20 69 6d 70 6c |an a rea|l.% impl|
|00005e50| 65 6d 65 6e 74 61 74 69 | 6f 6e 20 6f 66 20 76 65 |ementati|on of ve|
|00005e60| 72 62 61 74 69 6d 2e 0a | 25 0a 25 20 54 68 65 20 |rbatim..|%.% The |
|00005e70| 6d 65 63 68 61 6e 69 73 | 6d 20 69 73 20 71 75 69 |mechanis|m is qui|
|00005e80| 74 65 20 67 65 6e 65 72 | 61 6c 2c 20 61 6e 64 20 |te gener|al, and |
|00005e90| 61 6e 79 20 6d 61 63 72 | 6f 20 77 68 69 63 68 20 |any macr|o which |
|00005ea0| 77 61 6e 74 73 20 74 6f | 20 61 6c 6c 6f 77 20 61 |wants to| allow a|
|00005eb0| 0a 25 20 66 6f 72 6d 20 | 6f 66 20 22 5c 76 65 72 |.% form |of "\ver|
|00005ec0| 62 22 20 74 6f 20 62 65 | 20 75 73 65 64 20 77 69 |b" to be| used wi|
|00005ed0| 74 68 69 6e 20 69 74 73 | 20 61 72 67 75 6d 65 6e |thin its| argumen|
|00005ee0| 74 20 6d 61 79 0a 25 20 | 22 5c 6c 65 74 5c 76 65 |t may.% |"\let\ve|
|00005ef0| 72 62 3d 5c 54 58 40 76 | 65 72 62 22 2e 20 28 4d |rb=\TX@v|erb". (M|
|00005f00| 61 6b 69 6e 67 20 73 75 | 72 65 20 74 6f 20 72 65 |aking su|re to re|
|00005f10| 73 74 6f 72 65 20 74 68 | 65 20 72 65 61 6c 20 64 |store th|e real d|
|00005f20| 65 66 69 6e 69 74 69 6f | 6e 0a 25 20 6c 61 74 65 |efinitio|n.% late|
|00005f30| 72 21 29 0a 25 0a 25 20 | 22 5c 76 65 72 62 22 20 |r!).%.% |"\verb" |
|00005f40| 61 6e 64 20 22 5c 76 65 | 72 62 2a 22 20 61 72 65 |and "\ve|rb*" are|
|00005f50| 20 73 75 62 6a 65 63 74 | 20 74 6f 20 74 68 65 20 | subject| to the |
|00005f60| 66 6f 6c 6c 6f 77 69 6e | 67 20 72 65 73 74 69 63 |followin|g restic|
|00005f70| 74 69 6f 6e 73 3a 0a 25 | 20 5c 62 65 67 69 6e 7b |tions:.%| \begin{|
|00005f80| 65 6e 75 6d 65 72 61 74 | 65 7d 0a 25 20 5c 69 74 |enumerat|e}.% \it|
|00005f90| 65 6d 20 53 70 61 63 65 | 73 20 69 6e 20 74 68 65 |em Space|s in the|
|00005fa0| 20 61 72 67 75 6d 65 6e | 74 20 61 72 65 20 6e 6f | argumen|t are no|
|00005fb0| 74 20 72 65 61 64 20 76 | 65 72 62 61 74 69 6d 2c |t read v|erbatim,|
|00005fc0| 20 62 75 74 20 6d 61 79 | 20 62 65 20 73 6b 69 70 | but may| be skip|
|00005fd0| 70 65 64 0a 25 20 20 20 | 20 20 20 20 61 63 63 6f |ped.% | acco|
|00005fe0| 72 64 69 6e 67 20 74 6f | 20 5c 54 65 58 27 73 20 |rding to| \TeX's |
|00005ff0| 75 73 75 61 6c 20 72 75 | 6c 65 73 2e 0a 25 20 5c |usual ru|les..% \|
|00006000| 69 74 65 6d 20 53 70 61 | 63 65 73 20 77 69 6c 6c |item Spa|ces will|
|00006010| 20 62 65 20 61 64 64 65 | 64 20 74 6f 20 74 68 65 | be adde|d to the|
|00006020| 20 6f 75 74 70 75 74 20 | 61 66 74 65 72 20 63 6f | output |after co|
|00006030| 6e 74 72 6f 6c 20 77 6f | 72 64 73 2c 20 65 76 65 |ntrol wo|rds, eve|
|00006040| 6e 20 69 66 0a 25 20 20 | 20 20 20 20 20 74 68 65 |n if.% | the|
|00006050| 79 20 77 65 72 65 20 6e | 6f 74 20 70 72 65 73 65 |y were n|ot prese|
|00006060| 6e 74 20 69 6e 20 74 68 | 65 20 69 6e 70 75 74 2e |nt in th|e input.|
|00006070| 0a 25 20 5c 69 74 65 6d | 20 55 6e 6c 65 73 73 20 |.% \item| Unless |
|00006080| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 20 69 73 20 |the argu|ment is |
|00006090| 61 20 73 69 6e 67 6c 65 | 20 73 70 61 63 65 2c 20 |a single| space, |
|000060a0| 61 6e 79 20 74 72 61 69 | 6c 69 6e 67 20 73 70 61 |any trai|ling spa|
|000060b0| 63 65 2c 0a 25 20 20 20 | 20 20 20 20 77 68 65 74 |ce,.% | whet|
|000060c0| 68 65 72 20 69 6e 20 74 | 68 65 20 6f 72 69 67 69 |her in t|he origi|
|000060d0| 6e 61 6c 20 61 72 67 75 | 6d 65 6e 74 2c 20 6f 72 |nal argu|ment, or|
|000060e0| 20 61 64 64 65 64 20 61 | 73 20 69 6e 20 28 32 29 | added a|s in (2)|
|000060f0| 2c 0a 25 20 20 20 20 20 | 20 20 77 69 6c 6c 20 62 |,.% | will b|
|00006100| 65 20 6f 6d 69 74 74 65 | 64 2e 0a 25 20 5c 69 74 |e omitte|d..% \it|
|00006110| 65 6d 20 54 68 65 20 61 | 72 67 75 6d 65 6e 74 20 |em The a|rgument |
|00006120| 6d 75 73 74 20 6e 6f 74 | 20 65 6e 64 20 77 69 74 |must not| end wit|
|00006130| 68 20 22 5c 22 2c 20 73 | 6f 20 22 5c 76 65 72 62 |h "\", s|o "\verb|
|00006140| 7c 5c 7c 22 20 69 73 20 | 6e 6f 74 0a 25 20 20 20 ||\|" is |not.% |
|00006150| 20 20 20 61 6c 6c 6f 77 | 65 64 2c 20 68 6f 77 65 | allow|ed, howe|
|00006160| 76 65 72 2c 20 62 65 63 | 61 75 73 65 20 6f 66 20 |ver, bec|ause of |
|00006170| 28 33 29 2c 20 22 5c 76 | 65 72 62 7c 5c 20 7c 22 |(3), "\v|erb|\ |"|
|00006180| 20 70 72 6f 64 75 63 65 | 73 0a 25 20 20 20 20 20 | produce|s.% |
|00006190| 20 22 5c 22 2e 0a 25 20 | 5c 69 74 65 6d 20 54 68 | "\"..% |\item Th|
|000061a0| 65 20 61 72 67 75 6d 65 | 6e 74 20 6d 75 73 74 20 |e argume|nt must |
|000061b0| 62 65 20 62 61 6c 61 6e | 63 65 64 20 77 69 74 68 |be balan|ced with|
|000061c0| 20 72 65 73 70 65 63 74 | 20 74 6f 20 22 7b 22 20 | respect| to "{" |
|000061d0| 61 6e 64 20 22 7d 22 2e | 20 53 6f 0a 25 20 20 20 |and "}".| So.% |
|000061e0| 20 20 20 22 5c 76 65 72 | 62 7c 7b 7c 22 20 69 73 | "\ver|b|{|" is|
|000061f0| 20 6e 6f 74 20 61 6c 6c | 6f 77 65 64 2e 0a 25 20 | not all|owed..% |
|00006200| 5c 69 74 65 6d 20 41 20 | 63 6f 6d 6d 65 6e 74 20 |\item A |comment |
|00006210| 63 68 61 72 61 63 74 65 | 72 20 6c 69 6b 65 20 22 |characte|r like "|
|00006220| 25 22 20 77 69 6c 6c 20 | 6e 6f 74 20 61 70 70 65 |%" will |not appe|
|00006230| 61 72 20 76 65 72 62 61 | 74 69 6d 2e 20 49 74 20 |ar verba|tim. It |
|00006240| 77 69 6c 6c 0a 25 20 20 | 20 20 20 20 20 61 63 74 |will.% | act|
|00006250| 20 61 73 20 75 73 75 61 | 6c 2c 20 63 6f 6d 6d 65 | as usua|l, comme|
|00006260| 6e 74 69 6e 67 20 6f 75 | 74 20 74 68 65 20 72 65 |nting ou|t the re|
|00006270| 73 74 20 6f 66 20 74 68 | 65 20 69 6e 70 75 74 20 |st of th|e input |
|00006280| 6c 69 6e 65 21 0a 25 20 | 5c 69 74 65 6d 20 54 68 |line!.% |\item Th|
|00006290| 65 20 63 6f 6d 62 69 6e | 61 74 69 6f 6e 73 20 22 |e combin|ations "|
|000062a0| 3f 60 22 20 61 6e 64 20 | 22 21 60 22 20 77 69 6c |?`" and |"!`" wil|
|000062b0| 6c 20 61 70 70 65 61 72 | 20 61 73 0a 25 20 20 20 |l appear| as.% |
|000062c0| 20 20 20 20 7b 5c 74 74 | 66 61 6d 69 6c 79 3f 60 | {\tt|family?`|
|000062d0| 7d 20 61 6e 64 20 7b 5c | 74 74 66 61 6d 69 6c 79 |} and {\|ttfamily|
|000062e0| 21 60 7d 20 69 66 20 74 | 68 65 20 7b 5c 74 74 66 |!`} if t|he {\ttf|
|000062f0| 61 6d 69 6c 79 20 63 6d | 74 74 7d 20 66 6f 6e 74 |amily cm|tt} font|
|00006300| 20 69 73 0a 25 20 20 20 | 20 20 20 20 62 65 69 6e | is.% | bein|
|00006310| 67 20 75 73 65 64 2e 0a | 25 20 5c 65 6e 64 7b 65 |g used..|% \end{e|
|00006320| 6e 75 6d 65 72 61 74 65 | 7d 0a 25 0a 25 20 5c 62 |numerate|}.%.% \b|
|00006330| 65 67 69 6e 7b 6d 61 63 | 72 6f 7d 7b 5c 54 58 40 |egin{mac|ro}{\TX@|
|00006340| 76 65 72 62 7d 0a 25 20 | 54 68 65 20 69 6e 74 65 |verb}.% |The inte|
|00006350| 72 6e 61 6c 20 64 65 66 | 69 6e 69 74 69 6f 6e 20 |rnal def|inition |
|00006360| 6f 66 20 22 5c 76 65 72 | 62 22 2e 20 53 70 61 63 |of "\ver|b". Spac|
|00006370| 65 73 20 77 69 6c 6c 20 | 62 65 20 72 65 70 6c 61 |es will |be repla|
|00006380| 63 65 64 20 62 79 20 22 | 7e 22 2c 20 73 6f 0a 25 |ced by "|~", so.%|
|00006390| 20 66 6f 72 20 74 68 65 | 20 73 74 61 72 2d 66 6f | for the| star-fo|
|000063a0| 72 6d 2c 20 22 5c 6c 65 | 74 22 20 22 7e 22 20 62 |rm, "\le|t" "~" b|
|000063b0| 65 20 5c 76 65 72 62 2a | 7c 20 7c 2c 20 77 68 69 |e \verb*|| |, whi|
|000063c0| 63 68 20 77 65 20 6f 62 | 74 61 69 6e 20 61 73 0a |ch we ob|tain as.|
|000063d0| 25 20 22 5c 75 70 70 65 | 72 63 61 73 65 7b 2a 7d |% "\uppe|rcase{*}|
|000063e0| 22 2e 20 55 73 65 20 22 | 7b 5c 69 66 6e 75 6d 30 |". Use "|{\ifnum0|
|000063f0| 3d 60 7d 5c 66 69 22 20 | 72 61 74 68 65 72 20 74 |=`}\fi" |rather t|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.